1'''OpenGL extension AMD.sample_positions
2
3This module customises the behaviour of the
4OpenGL.raw.GL.AMD.sample_positions to provide a more
5Python-friendly API
6
7Overview (from the spec)
8
9	This extension provides a mechanism to explicitly set sample positions for a
10	FBO with multi-sampled attachments. The FBO will use identical sample locations
11	for all pixels in each attachment. This forces TEXTURE_FIXED_SAMPLE_LOCATIONS
12	to TRUE if a multi-sampled texture is specified using TexImage2DMultisample
13	or TexImage3DMultisample. That is, using GetTexLevelParameter to query
14	TEXTURE_FIXED_SAMPLE_LOCATIONS will always return TRUE if the mechanism is
15	explicitly used to set the sample positions.
16
17The official definition of this extension is available here:
18http://www.opengl.org/registry/specs/AMD/sample_positions.txt
19'''
20from OpenGL import platform, constant, arrays
21from OpenGL import extensions, wrapper
22import ctypes
23from OpenGL.raw.GL import _types, _glgets
24from OpenGL.raw.GL.AMD.sample_positions import *
25from OpenGL.raw.GL.AMD.sample_positions import _EXTENSION_NAME
26
27def glInitSamplePositionsAMD():
28    '''Return boolean indicating whether this extension is available'''
29    from OpenGL import extensions
30    return extensions.hasGLExtension( _EXTENSION_NAME )
31
32glSetMultisamplefvAMD=wrapper.wrapper(glSetMultisamplefvAMD).setInputArraySize(
33    'val', 2
34)
35### END AUTOGENERATED SECTION