Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBInternalformatQuery

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

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 TypeField and Description
public static final int
GL_NUM_SAMPLE_COUNTS

Accepted by the pname parameter of GetInternalformativ.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
glGetInternalformati(int target, int
the internal format about which to retrieve information
internalformat
,
int
the type of information to query
pname
)

Retrieves information about implementation-dependent support for internal formats.

public static void
glGetInternalformativ(int target, int
the internal format about which to retrieve information
internalformat
,
int
the type of information to query
pname
,
IntBuffer
a variable into which to write the retrieved information
params
)

Retrieves information about implementation-dependent support for internal formats.

public static void
glGetInternalformativ(int target, int internalformat, int pname, int[] params)

Array version of: GetInternalformativ

public static void
nglGetInternalformativ(int target, int internalformat, int pname, int
the maximum number of values that may be written to params by the function
bufSize
,
long params)

Unsafe version of: GetInternalformativ

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_NUM_SAMPLE_COUNTSback to summary
public static final int GL_NUM_SAMPLE_COUNTS

Accepted by the pname parameter of GetInternalformativ.

Constructor Detail

ARBInternalformatQueryback to summary
protected ARBInternalformatQuery()

Method Detail

glGetInternalformatiback to summary
public static int glGetInternalformati(int target, int internalformat, int pname)

Retrieves information about implementation-dependent support for internal formats.

Parameters
target:int

the usage of the internal format. One of:

TEXTURE_1DTEXTURE_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAP
TEXTURE_3DTEXTURE_2D_ARRAYTEXTURE_CUBE_MAP_ARRAYRENDERBUFFERTEXTURE_BUFFER
TEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAY
internalformat:int

the internal format about which to retrieve information

pname:int

the type of information to query

Annotations
@NativeType:void
glGetInternalformativback to summary
public static void glGetInternalformativ(int target, int internalformat, int pname, IntBuffer params)

Retrieves information about implementation-dependent support for internal formats.

Parameters
target:int

the usage of the internal format. One of:

TEXTURE_1DTEXTURE_2DTEXTURE_1D_ARRAYTEXTURE_RECTANGLETEXTURE_CUBE_MAP
TEXTURE_3DTEXTURE_2D_ARRAYTEXTURE_CUBE_MAP_ARRAYRENDERBUFFERTEXTURE_BUFFER
TEXTURE_2D_MULTISAMPLETEXTURE_2D_MULTISAMPLE_ARRAY
internalformat:int

the internal format about which to retrieve information

pname:int

the type of information to query

params:IntBuffer

a variable into which to write the retrieved information

glGetInternalformativback to summary
public static void glGetInternalformativ(int target, int internalformat, int pname, int[] params)

Array version of: GetInternalformativ

nglGetInternalformativback to summary
public static void nglGetInternalformativ(int target, int internalformat, int pname, int bufSize, long params)

Unsafe version of: GetInternalformativ

Parameters
bufSize:int

the maximum number of values that may be written to params by the function