
    3j{                     Z   S r SSKJrJrJr  SSKJrJr  SSKrSSKJ	r	J
r
  SSK7  SSKJr  S r\R                  " \5      R                  S	S
 SSS9r\R                  " \5      R#                  S	S5      r\R                  " \5      R#                  SS5      r\R                  " \5      R#                  SS5      r\R                  " \5      R#                  SS5      r\R                  " \5      R#                  SS5      r\R                  " \5      R                  S\
R.                  SSS9r\R                  " \5      R                  S\
R.                  SSS9r\R                  " \5      R                  S\
R.                  SSS9r\R                  " \5      R                  S\
R.                  SSS9rg)a*  OpenGL extension ARB.sampler_objects

This module customises the behaviour of the 
OpenGL.raw.GL.ARB.sampler_objects to provide a more 
Python-friendly API

Overview (from the spec)
        
        In unextended OpenGL textures are considered to be sets of image
        data (mip-chains, arrays, cube-map face sets, etc.) and sampling
        state (sampling mode, mip-mapping state, coordinate wrapping and
        clamping rules, etc.) combined into a single object. It is typical
        for an application to use many textures with a limited set of
        sampling states that are the same between them. In order to use
        textures in this way, an application must generate and configure
        many texture names, adding overhead both to applications and to
        implementations. Furthermore, should an application wish to sample
        from a texture in more than one way (with and without mip-mapping,
        for example) it must either modify the state of the texture or
        create two textures, each with a copy of the same image data. This
        can introduce runtime and memory costs to the application.
        
        This extension separates sampler state from texture image data. A
        new object type is introduced, the sampler (representing generic
        sampling parameters). The new sampler objects are represented by a
        new named type encapsulating the sampling parameters of a
        traditional texture object. Sampler objects may be bound to texture
        units to supplant the bound texture's sampling state. A single
        sampler may be bound to more than one texture unit simultaneously,
        allowing different textures to be accessed with a single set of
        shared sampling parameters. Also, by binding different sampler
        objects to texture units to which the same texture has been bound,
        the same texture image data may be sampled with different sampling
        parameters.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/sampler_objects.txt
    )platformconstantarrays)
extensionswrapperN)_types_glgets)*)_EXTENSION_NAMEc                  :    SSK Jn   U R                  " [        5      $ )z=Return boolean indicating whether this extension is availabler   r   )OpenGLr   hasGLExtensionr   r   s    W/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/sampler_objects.pyglInitSamplerObjectsARBr   .   s    !$$o77    samplersc                     U 4$ )N )xs    r   <lambda>r   4   s    aTr   countT)sizepnameArgorPassInparamparamspname)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   !OpenGL.raw.GL.ARB.sampler_objectsr   r   glGenSamplers	setOutputglDeleteSamplerssetInputArraySizeglSamplerParameterivglSamplerParameterfvglSamplerParameterIivglSamplerParameterIuivglGetSamplerParameteriv_glget_size_mappingglGetSamplerParameterIivglGetSamplerParameterfvglGetSamplerParameterIuivr   r   r   <module>r0      s  %L . - &  ) / =8
 oom,66M7D 7  !12DD  __%9:LLT  __%9:LLT  oo&;<NNT  '=>PPT   (?@JJ'--w K   !)ABLL'--w M    (?@JJ'--w K   "//*CDNN'--w O  r   