
    3jA	                        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	\
R                   S
SS9r\R                  " \5      R                  S	\
R                   S
SS9rg)a  OpenGL extension ARB.timer_query

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

Overview (from the spec)
        
        Applications can benefit from accurate timing information in a number of
        different ways.  During application development, timing information can
        help identify application or driver bottlenecks.  At run time,
        applications can use timing information to dynamically adjust the amount
        of detail in a scene to achieve constant frame rates.  OpenGL
        implementations have historically provided little to no useful timing
        information.  Applications can get some idea of timing by reading timers
        on the CPU, but these timers are not synchronized with the graphics
        rendering pipeline.  Reading a CPU timer does not guarantee the completion
        of a potentially large amount of graphics work accumulated before the
        timer is read, and will thus produce wildly inaccurate results.
        glFinish() can be used to determine when previous rendering commands have
        been completed, but will idle the graphics pipeline and adversely affect
        application performance.
        
        This extension provides a query mechanism that can be used to determine
        the amount of time it takes to fully complete a set of GL commands, and
        without stalling the rendering pipeline.  It uses the query object
        mechanisms first introduced in the occlusion query extension, which allow
        time intervals to be polled asynchronously by the application.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/ARB/timer_query.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    S/home/wildlama/miniconda3/lib/python3.13/site-packages/OpenGL/GL/ARB/timer_query.pyglInitTimerQueryARBr   (   s    !$$o77    paramspnameT)sizepnameArgorPassIn)__doc__r   r   r   r   r   r   ctypesOpenGL.raw.GLr   r	   OpenGL.raw.GL.ARB.timer_queryr   r   glGetQueryObjecti64v	setOutput_glget_size_mappingglGetQueryObjectui64v r   r   <module>r!      s   @ . - &  ) + 98
 __%9:DD'--w E   oo&;<FF'--w G  r   