public class ARBInternalformatQuery
extends java.lang.Object
OpenGL 4.1 has a number of queries to indicate the maximum number of samples available for different formats. These give a coarse-grained query mechanism e.g. an implementation can expose different sample counts for integer and floating-point formats, but not for different floating-point formats. There is also no convenient way for the user to determine the granularity of sample counts available, only the maximum.
This extension adds a query mechanism that allows the user to determine which sample counts are available for a specific internal format.
Requires OpenGL 3.0 or ARB_framebuffer_object. Promoted to core in OpenGL 4.2.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_NUM_SAMPLE_COUNTS
Accepted by the
pname parameter of GetInternalformativ. |
| Modifier and Type | Method and Description |
|---|---|
static int |
glGetInternalformati(int target,
int internalformat,
int pname)
Retrieves information about implementation-dependent support for internal formats.
|
static void |
glGetInternalformativ(int target,
int internalformat,
int pname,
int[] params)
Array version of:
GetInternalformativ |
static void |
glGetInternalformativ(int target,
int internalformat,
int pname,
java.nio.IntBuffer params)
Retrieves information about implementation-dependent support for internal formats.
|
static void |
nglGetInternalformativ(int target,
int internalformat,
int pname,
int bufSize,
long params)
Unsafe version of:
GetInternalformativ |
public static final int GL_NUM_SAMPLE_COUNTS
pname parameter of GetInternalformativ.public static void nglGetInternalformativ(int target,
int internalformat,
int pname,
int bufSize,
long params)
GetInternalformativbufSize - the maximum number of values that may be written to params by the functionpublic static void glGetInternalformativ(int target,
int internalformat,
int pname,
java.nio.IntBuffer params)
target - the usage of the internal format. One of:TEXTURE_1D | TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
TEXTURE_3D | TEXTURE_2D_ARRAY | TEXTURE_CUBE_MAP_ARRAY | RENDERBUFFER | TEXTURE_BUFFER |
TEXTURE_2D_MULTISAMPLE | TEXTURE_2D_MULTISAMPLE_ARRAY |
internalformat - the internal format about which to retrieve informationpname - the type of information to queryparams - a variable into which to write the retrieved informationpublic static int glGetInternalformati(int target,
int internalformat,
int pname)
target - the usage of the internal format. One of:TEXTURE_1D | TEXTURE_2D | TEXTURE_1D_ARRAY | TEXTURE_RECTANGLE | TEXTURE_CUBE_MAP |
TEXTURE_3D | TEXTURE_2D_ARRAY | TEXTURE_CUBE_MAP_ARRAY | RENDERBUFFER | TEXTURE_BUFFER |
TEXTURE_2D_MULTISAMPLE | TEXTURE_2D_MULTISAMPLE_ARRAY |
internalformat - the internal format about which to retrieve informationpname - the type of information to querypublic static void glGetInternalformativ(int target,
int internalformat,
int pname,
int[] params)
GetInternalformativCopyright LWJGL. All Rights Reserved. License terms.