Package org.lwjgl.opengl
Class ARBTextureMultisample
- java.lang.Object
-
- org.lwjgl.opengl.ARBTextureMultisample
-
public class ARBTextureMultisample extends java.lang.ObjectNative bindings to the ARB_texture_multisample extension.This extension provides support for two new types of "multisample textures" - two-dimensional and two-dimensional array - as well as mechanisms to fetch a specific sample from such a texture in a shader, and to attach such textures to FBOs for rendering.
This extension also includes the following functionality, first described in NV_explicit_multisample:
- A query in the API to query the location of samples within the pixel
- An explicit control for the multisample sample mask to augment the control provided by SampleCoverage
Promoted to core in
OpenGL 3.2.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_INT_SAMPLER_2D_MULTISAMPLE
GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetypeparameter of GetActiveUniform.static intGL_MAX_COLOR_TEXTURE_SAMPLES
GL_MAX_DEPTH_TEXTURE_SAMPLES
GL_MAX_INTEGER_SAMPLES
GL_MAX_SAMPLE_MASK_WORDSAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static intGL_PROXY_TEXTURE_2D_MULTISAMPLEAccepted by thetargetparameter of TexImage2DMultisample.static intGL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAYAccepted by thetargetparameter of TexImage3DMultisample.static intGL_SAMPLE_MASKAccepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_SAMPLE_MASK_VALUEAccepted by thetargetparameter of GetBooleani_v and GetIntegeri_v.static intGL_SAMPLE_POSITIONAccepted by thepnameparameter of GetMultisamplefv.static intGL_SAMPLER_2D_MULTISAMPLE
GL_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetypeparameter of GetActiveUniform.static intGL_TEXTURE_2D_MULTISAMPLEAccepted by thetargetparameter of BindTexture and TexImage2DMultisample.static intGL_TEXTURE_2D_MULTISAMPLE_ARRAYAccepted by thetargetparameter of BindTexture and TexImage3DMultisample.static intGL_TEXTURE_BINDING_2D_MULTISAMPLE
GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAYAccepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.static intGL_TEXTURE_FIXED_SAMPLE_LOCATIONS
GL_TEXTURE_SAMPLESAccepted by thepnameparameter of GetTexLevelParameter.static intGL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAYReturned by thetypeparameter of GetActiveUniform.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static floatglGetMultisamplef(int pname, int index)Retrieves the location of a sample.static voidglGetMultisamplefv(int pname, int index, float[] val)Array version of:GetMultisamplefvstatic voidglGetMultisamplefv(int pname, int index, java.nio.FloatBuffer val)Retrieves the location of a sample.static voidglSampleMaski(int index, int mask)Sets the value of a sub-word of the sample mask.static voidglTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations)Establishes the data storage, format, dimensions, and number of samples of a 2D multisample texture's image.static voidglTexImage3DMultisample(int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations)Establishes the data storage, format, dimensions, and number of samples of a 3D multisample texture's image.
-
-
-
Field Detail
-
GL_SAMPLE_POSITION
Accepted by thepnameparameter of GetMultisamplefv.
-
GL_SAMPLE_MASK
Accepted by thecapparameter of Enable, Disable, and IsEnabled, and by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
GL_SAMPLE_MASK_VALUE
Accepted by thetargetparameter of GetBooleani_v and GetIntegeri_v.
-
GL_TEXTURE_2D_MULTISAMPLE
Accepted by thetargetparameter of BindTexture and TexImage2DMultisample.
-
GL_PROXY_TEXTURE_2D_MULTISAMPLE
Accepted by thetargetparameter of TexImage2DMultisample.
-
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetargetparameter of BindTexture and TexImage3DMultisample.
-
GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by thetargetparameter of TexImage3DMultisample.
-
GL_MAX_SAMPLE_MASK_WORDS, GL_MAX_COLOR_TEXTURE_SAMPLES, GL_MAX_DEPTH_TEXTURE_SAMPLES, GL_MAX_INTEGER_SAMPLES, GL_TEXTURE_BINDING_2D_MULTISAMPLE, GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY
Accepted by thepnameparameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.
-
GL_TEXTURE_SAMPLES, GL_TEXTURE_FIXED_SAMPLE_LOCATIONS
Accepted by thepnameparameter of GetTexLevelParameter.
-
GL_SAMPLER_2D_MULTISAMPLE, GL_INT_SAMPLER_2D_MULTISAMPLE, GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE, GL_SAMPLER_2D_MULTISAMPLE_ARRAY, GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY, GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
Returned by thetypeparameter of GetActiveUniform.
-
-
Method Detail
-
glTexImage2DMultisample
public static void glTexImage2DMultisample(int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations)Establishes the data storage, format, dimensions, and number of samples of a 2D multisample texture's image.- Parameters:
target- the target of the operation. One of:TEXTURE_2D_MULTISAMPLEPROXY_TEXTURE_2D_MULTISAMPLEsamples- the number of samples in the multisample texture's imageinternalformat- the internal format to be used to store the multisample texture's image.internalformatmust specify a color-renderable, depth-renderable, or stencil-renderable format.width- the width of the multisample texture's image, in texelsheight- the height of the multisample texture's image, in texelsfixedsamplelocations- whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image
-
glTexImage3DMultisample
public static void glTexImage3DMultisample(int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations)Establishes the data storage, format, dimensions, and number of samples of a 3D multisample texture's image.- Parameters:
target- the target of the operation. One of:TEXTURE_2D_MULTISAMPLE_ARRAYPROXY_TEXTURE_2D_MULTISAMPLE_ARRAYsamples- the number of samples in the multisample texture's imageinternalformat- the internal format to be used to store the multisample texture's image.internalformatmust specify a color-renderable, depth-renderable, or stencil-renderable format.width- the width of the multisample texture's image, in texelsheight- the height of the multisample texture's image, in texelsdepth- the depth of the multisample texture's image, in texelsfixedsamplelocations- whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image
-
glGetMultisamplefv
public static void glGetMultisamplefv(int pname, int index, java.nio.FloatBuffer val)Retrieves the location of a sample.- Parameters:
pname- the sample parameter name. Must be:SAMPLE_POSITIONindex- the index of the sample whose position to queryval- an array to receive the position of the sample
-
glGetMultisamplef
public static float glGetMultisamplef(int pname, int index)Retrieves the location of a sample.- Parameters:
pname- the sample parameter name. Must be:SAMPLE_POSITIONindex- the index of the sample whose position to query
-
glSampleMaski
public static void glSampleMaski(int index, int mask)Sets the value of a sub-word of the sample mask.- Parameters:
index- which 32-bit sub-word of the sample mask to updatemask- the new value of the mask sub-word
-
glGetMultisamplefv
public static void glGetMultisamplefv(int pname, int index, float[] val)Array version of:GetMultisamplefv
-
-