a
    i‚jí  ã                   @   s`   d Z ddlmZmZmZ ddlmZmZ ddlZddlm	Z	m
Z
 ddlT ddlmZ dd	„ ZdS )
aü  OpenGL extension NV.read_depth_stencil

This module customises the behaviour of the 
OpenGL.raw.GLES2.NV.read_depth_stencil to provide a more 
Python-friendly API

Overview (from the spec)
	
	Unextended OpenGL-ES 2.0 only supports using ReadPixels to read from the
	default color buffer of the currently-bound framebuffer.  However, it is
	useful for debugging to be able to read from depth and stencil buffers.
	This extension re-introduces these features into OpenGL-ES 2.0.
	
	This document describes several extensions in order to allow an
	implementation to support a subset of the total functionality.
	
	The NV_read_depth extension allows reading from the depth buffer using
	ReadPixels.
	
	The NV_read_stencil extension allows reading from the stencil buffer using
	ReadPixels.
	
	The NV_read_depth_stencil extension allows reading from packed
	depth-stencil buffers using ReadPixels.
	

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/NV/read_depth_stencil.txt
é    )ÚplatformÚconstantÚarrays)Ú
extensionsÚwrapperN)Ú_typesÚ_glgets)Ú*)Ú_EXTENSION_NAMEc                  C   s   ddl m}  |  t¡S )z=Return boolean indicating whether this extension is availabler   ©r   )ÚOpenGLr   ZhasGLExtensionr
   r   © r   ú`/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES2/NV/read_depth_stencil.pyÚglInitReadDepthStencilNV%   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES2r   r   Z&OpenGL.raw.GLES2.NV.read_depth_stencilr
   r   r   r   r   r   Ú<module>   s   