Package org.lwjgl.opengl
Class ARBInternalformatQuery
- java.lang.Object
-
- org.lwjgl.opengl.ARBInternalformatQuery
-
public class ARBInternalformatQuery extends java.lang.ObjectNative 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.0orARB_framebuffer_object. Promoted to core inOpenGL 4.2.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_NUM_SAMPLE_COUNTSAccepted by thepnameparameter of GetInternalformativ.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intglGetInternalformati(int target, int internalformat, int pname)Retrieves information about implementation-dependent support for internal formats.static voidglGetInternalformativ(int target, int internalformat, int pname, int[] params)Array version of:GetInternalformativstatic voidglGetInternalformativ(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 thepnameparameter 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_1DTEXTURE_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPTEXTURE_3DTEXTURE_2D_ARRAYTEXTURE_CUBE_MAP_ARRAYRENDERBUFFERTEXTURE_BUFFERTEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAYinternalformat- 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_1DTEXTURE_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAPTEXTURE_3DTEXTURE_2D_ARRAYTEXTURE_CUBE_MAP_ARRAYRENDERBUFFERTEXTURE_BUFFERTEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAYinternalformat- 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
-
-