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 )
aN  OpenGL extension NV.read_buffer

This module customises the behaviour of the 
OpenGL.raw.GLES2.NV.read_buffer 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
	non-default color buffers.  Particularly, when the NV_draw_buffers
	extension is supported, each framebuffer may contain multiple color
	buffers. This extension provides a mechanism to select which color
	buffer to read from.
	
	This document describes two extensions to allow an implementation to
	support a subset of the total functionality.
	
	The NV_read_buffer extension adds the command ReadBufferNV, which is
	used to select which color buffer of the currently-bound framebuffer
	to use as the source for subsequent calls to ReadPixels,
	CopyTexImage2D, and CopyTexSubImage2D. If the system-provided
	framebuffer is bound, then ReadBufferNV accepts value BACK. If a
	user-created FBO is bound, then ReadBufferNV accepts COLOR_ATTACHMENT0.
	Additionally, if the NV_draw_buffers extension is supported,
	ReadBufferNV accepts COLOR_ATTACHMENTn_NV (n is 0 to 15).
	
	The NV_read_buffer_front extension requires NV_read_buffer and adds
	the ability to select the system-provided FRONT color buffer as the
	source for read operations when the system-provided framebuffer is
	bound and contains both a front and back buffer.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/NV/read_buffer.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   úY/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES2/NV/read_buffer.pyÚglInitReadBufferNV,   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES2r   r   ZOpenGL.raw.GLES2.NV.read_bufferr
   r   r   r   r   r   Ú<module>   s   $