Package org.lwjgl.opengl
Class ARBInternalformatQuery
- java.lang.Object
-
- org.lwjgl.opengl.ARBInternalformatQuery
-
public class ARBInternalformatQuery extends java.lang.Object
Native bindings to the ARB_internalformat_query extension.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
orARB_framebuffer_object
. Promoted to core inOpenGL 4.2
.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
GL_NUM_SAMPLE_COUNTS
Accepted by thepname
parameter of GetInternalformativ.
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Field Detail
-
GL_NUM_SAMPLE_COUNTS
public static final int GL_NUM_SAMPLE_COUNTS
Accepted by thepname
parameter of GetInternalformativ.- See Also:
- Constant Field Values
-
-
Method Detail
-
glGetInternalformativ
public static void glGetInternalformativ(int target, int internalformat, int pname, java.nio.IntBuffer params)
Retrieves information about implementation-dependent support for internal formats.- Parameters:
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 information
-
glGetInternalformati
public static int glGetInternalformati(int target, int internalformat, int pname)
Retrieves information about implementation-dependent support for internal formats.- Parameters:
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 query
-
glGetInternalformativ
public static void glGetInternalformativ(int target, int internalformat, int pname, int[] params)
Array version of:GetInternalformativ
-
-