1'''OpenGL extension NV.explicit_multisample 2 3This module customises the behaviour of the 4OpenGL.raw.GL.NV.explicit_multisample to provide a more 5Python-friendly API 6 7Overview (from the spec) 8 9 In traditional multisample specs, the API only allows access to the samples 10 indirectly through methods such as coverage values and downsampled 11 readbacks. NV_explicit_multisample adds a set of new capabilities to allow 12 more precise control over the use of multisamples. Specifically, it adds: 13 14 * A query in the API to query the location of samples within the pixel 15 16 * An explicit control for the multisample sample mask to augment the 17 control provided by SampleCoverage 18 19 * A new texture target to wrap a renderbuffer and allow a restricted class 20 of accesses to the samples 21 22 * The ability to fetch a specific sample from a multisampled texture from 23 within a shader 24 25 * A program option to enable the new behavior 26 27The official definition of this extension is available here: 28http://www.opengl.org/registry/specs/NV/explicit_multisample.txt 29''' 30from OpenGL import platform, constant, arrays 31from OpenGL import extensions, wrapper 32import ctypes 33from OpenGL.raw.GL import _types, _glgets 34from OpenGL.raw.GL.NV.explicit_multisample import * 35from OpenGL.raw.GL.NV.explicit_multisample import _EXTENSION_NAME 36 37def glInitExplicitMultisampleNV(): 38 '''Return boolean indicating whether this extension is available''' 39 from OpenGL import extensions 40 return extensions.hasGLExtension( _EXTENSION_NAME ) 41 42glGetMultisamplefvNV=wrapper.wrapper(glGetMultisamplefvNV).setOutput( 43 'val',size=(2,),orPassIn=True 44) 45### END AUTOGENERATED SECTION