
    3ju                         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g)a  OpenGL extension AMD.name_gen_delete

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

Overview (from the spec)
        
        This extension simply creates 2 new entry-points that name generic
        creation and deletion of names.  The intent is to go away from API
        functionality that provides a create/delete function for each specific 
        object.  
        
        For example: 
            glGenTextures/glDeleteTextures/glIsTexture
            glGenBuffers/glDeleteBuffers/IsBuffer
            glGenFramebuffers/glDeleteFramebuffers/IsFramebuffer
        
        Instead, everything is created using one entry-point GenNamesAMD and
        everything is now deleted with another entry-point DeleteNamesAMD with
        the appropriate identifier set.  In addition, everything can now be 
        queried with IsNameAMD.
        
        This alleviates the problem we may eventually encounter where we have
        many Gen/Delete/Is functions where 3 might suffice.  All that is needed
        in the new case is to add a valid identifier to the accepted parameters
        list.
        

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/AMD/name_gen_delete.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/AMD/name_gen_delete.pyglInitNameGenDeleteAMDr   (   s    !$$o77    namesc                     U 4$ )N )xs    r   <lambda>r   .   s    1$r   numT)sizepnameArgorPassIn)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   !OpenGL.raw.GL.AMD.name_gen_deleter   r   glGenNamesAMD	setOutputglDeleteNamesAMDsetInputArraySizer   r   r   <module>r$      sr   @ . - &  ) / =8
 oom,66t 7  !12DDT r   