Package org.lwjgl.opengl
Class ARBInternalformatQuery
java.lang.Object
org.lwjgl.opengl.ARBInternalformatQuery
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
or ARB_framebuffer_object
. Promoted to core in OpenGL 4.2
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by thepname
parameter of GetInternalformativ. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, 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
-
Field Details
-
GL_NUM_SAMPLE_COUNTS
public static final int GL_NUM_SAMPLE_COUNTSAccepted by thepname
parameter of GetInternalformativ.- See Also:
-
-
Method Details
-
nglGetInternalformativ
public static void nglGetInternalformativ(int target, int internalformat, int pname, int bufSize, long params) Unsafe version of:GetInternalformativ
- Parameters:
bufSize
- the maximum number of values that may be written to params by the function
-
glGetInternalformativ
public static void glGetInternalformativ(int target, int internalformat, int pname, 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
-