public class ARBTextureMultisample
extends java.lang.Object
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:
Promoted to core in OpenGL 3.2.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_INT_SAMPLER_2D_MULTISAMPLE
Returned by the
type parameter of GetActiveUniform. |
static int |
GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
Returned by the
type parameter of GetActiveUniform. |
static int |
GL_MAX_COLOR_TEXTURE_SAMPLES
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. |
static int |
GL_MAX_DEPTH_TEXTURE_SAMPLES
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. |
static int |
GL_MAX_INTEGER_SAMPLES
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. |
static int |
GL_MAX_SAMPLE_MASK_WORDS
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. |
static int |
GL_PROXY_TEXTURE_2D_MULTISAMPLE
Accepted by the
target parameter of TexImage2DMultisample. |
static int |
GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by the
target parameter of TexImage3DMultisample. |
static int |
GL_SAMPLE_MASK
Accepted by the
cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and
GetDoublev. |
static int |
GL_SAMPLE_MASK_VALUE
Accepted by the
target parameter of GetBooleani_v and GetIntegeri_v. |
static int |
GL_SAMPLE_POSITION
Accepted by the
pname parameter of GetMultisamplefv. |
static int |
GL_SAMPLER_2D_MULTISAMPLE
Returned by the
type parameter of GetActiveUniform. |
static int |
GL_SAMPLER_2D_MULTISAMPLE_ARRAY
Returned by the
type parameter of GetActiveUniform. |
static int |
GL_TEXTURE_2D_MULTISAMPLE
Accepted by the
target parameter of BindTexture and TexImage2DMultisample. |
static int |
GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Accepted by the
target parameter of BindTexture and TexImage3DMultisample. |
static int |
GL_TEXTURE_BINDING_2D_MULTISAMPLE
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. |
static int |
GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY
Accepted by the
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. |
static int |
GL_TEXTURE_FIXED_SAMPLE_LOCATIONS
Accepted by the
pname parameter of GetTexLevelParameter. |
static int |
GL_TEXTURE_SAMPLES
Accepted by the
pname parameter of GetTexLevelParameter. |
static int |
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE
Returned by the
type parameter of GetActiveUniform. |
static int |
GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
Returned by the
type parameter of GetActiveUniform. |
| Modifier and Type | Method and Description |
|---|---|
static float |
glGetMultisamplef(int pname,
int index)
Retrieves the location of a sample.
|
static void |
glGetMultisamplefv(int pname,
int index,
float[] val)
Array version of:
GetMultisamplefv |
static void |
glGetMultisamplefv(int pname,
int index,
java.nio.FloatBuffer val)
Retrieves the location of a sample.
|
static void |
glSampleMaski(int index,
int mask)
Sets the value of a sub-word of the sample mask.
|
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.
|
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.
|
static void |
nglGetMultisamplefv(int pname,
int index,
long val)
Unsafe version of:
GetMultisamplefv |
public static final int GL_SAMPLE_POSITION
pname parameter of GetMultisamplefv.public static final int GL_SAMPLE_MASK
cap parameter of Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and
GetDoublev.public static final int GL_SAMPLE_MASK_VALUE
target parameter of GetBooleani_v and GetIntegeri_v.public static final int GL_TEXTURE_2D_MULTISAMPLE
target parameter of BindTexture and TexImage2DMultisample.public static final int GL_PROXY_TEXTURE_2D_MULTISAMPLE
target parameter of TexImage2DMultisample.public static final int GL_TEXTURE_2D_MULTISAMPLE_ARRAY
target parameter of BindTexture and TexImage3DMultisample.public static final int GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY
target parameter of TexImage3DMultisample.public static final int GL_MAX_SAMPLE_MASK_WORDS
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.public static final int GL_MAX_COLOR_TEXTURE_SAMPLES
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.public static final int GL_MAX_DEPTH_TEXTURE_SAMPLES
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.public static final int GL_MAX_INTEGER_SAMPLES
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.public static final int GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY
pname parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv.public static final int GL_TEXTURE_SAMPLES
pname parameter of GetTexLevelParameter.public static final int GL_TEXTURE_FIXED_SAMPLE_LOCATIONS
pname parameter of GetTexLevelParameter.public static final int GL_SAMPLER_2D_MULTISAMPLE
type parameter of GetActiveUniform.public static final int GL_INT_SAMPLER_2D_MULTISAMPLE
type parameter of GetActiveUniform.public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE
type parameter of GetActiveUniform.public static final int GL_SAMPLER_2D_MULTISAMPLE_ARRAY
type parameter of GetActiveUniform.public static final int GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
type parameter of GetActiveUniform.public static final int GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY
type parameter of GetActiveUniform.public static void glTexImage2DMultisample(int target,
int samples,
int internalformat,
int width,
int height,
boolean fixedsamplelocations)
target - the target of the operation. One of:TEXTURE_2D_MULTISAMPLE | PROXY_TEXTURE_2D_MULTISAMPLE |
samples - the number of samples in the multisample texture's imageinternalformat - the internal format to be used to store the multisample texture's image. internalformat must 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 imagepublic static void glTexImage3DMultisample(int target,
int samples,
int internalformat,
int width,
int height,
int depth,
boolean fixedsamplelocations)
target - the target of the operation. One of:TEXTURE_2D_MULTISAMPLE_ARRAY | PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY |
samples - the number of samples in the multisample texture's imageinternalformat - the internal format to be used to store the multisample texture's image. internalformat must 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 imagepublic static void nglGetMultisamplefv(int pname,
int index,
long val)
GetMultisamplefvpublic static void glGetMultisamplefv(int pname,
int index,
java.nio.FloatBuffer val)
pname - the sample parameter name. Must be:SAMPLE_POSITION |
index - the index of the sample whose position to queryval - an array to receive the position of the samplepublic static float glGetMultisamplef(int pname,
int index)
pname - the sample parameter name. Must be:SAMPLE_POSITION |
index - the index of the sample whose position to querypublic static void glSampleMaski(int index,
int mask)
index - which 32-bit sub-word of the sample mask to updatemask - the new value of the mask sub-wordpublic static void glGetMultisamplefv(int pname,
int index,
float[] val)
GetMultisamplefvCopyright LWJGL. All Rights Reserved. License terms.