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 )
a5  OpenGL extension APPLE.framebuffer_multisample

This module customises the behaviour of the 
OpenGL.raw.GLES1.APPLE.framebuffer_multisample to provide a more 
Python-friendly API

Overview (from the spec)
	
	This extension extends the framebuffer object framework to
	enable multisample rendering.
	
	The new operation RenderbufferStorageMultisampleAPPLE() allocates
	storage for a renderbuffer object that can be used as a multisample
	buffer.  A multisample render buffer image differs from a
	single-sample render buffer image in that a multisample image has a
	number of SAMPLES that is greater than zero.  No method is provided
	for creating multisample texture images.
	
	All of the framebuffer-attachable images attached to a framebuffer
	object must have the same number of SAMPLES or else the framebuffer
	object is not "framebuffer complete".  If a framebuffer object with
	multisample attachments is "framebuffer complete", then the
	framebuffer object behaves as if SAMPLE_BUFFERS is one.
	
	The resolve operation is affected by calling 
	ResolveMultisampleFramebufferAPPLE where the source is a multisample 
	application-created framebuffer object and the destination is a 
	single-sample framebuffer object.  Separate read and draw framebuffer 
	object binding points are established to facilitate the resolve.
	
	Scissoring may be used in conjunction with 
	ResolveMultisampleFramebufferAPPLE to resolve only a portion of the 
	framebuffer.

The official definition of this extension is available here:
http://www.opengl.org/registry/specs/APPLE/framebuffer_multisample.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   úh/home/ghrups/robot-bench/.venv/lib/python3.9/site-packages/OpenGL/GLES1/APPLE/framebuffer_multisample.pyÚ!glInitFramebufferMultisampleAPPLE-   s    r   )Ú__doc__r   r   r   r   r   r   ÚctypesZOpenGL.raw.GLES1r   r   Z.OpenGL.raw.GLES1.APPLE.framebuffer_multisampler
   r   r   r   r   r   Ú<module>   s   %