Package org.lwjgl.opengl
Class AMDOcclusionQueryEvent
java.lang.Object
org.lwjgl.opengl.AMDOcclusionQueryEvent
Native bindings to the AMD_occlusion_query_event extension.
This extension introduces the concept of occlusion query events and changes the concept of an occlusion query from counting passed fragments to counting fragments that generate any of a user-selectable set of events. Provided events include passing the depth test, and passing or failing the stencil test. For a given occlusion query object, counting of these events may be enabled or disabled, allowing any combination to be counted.
Requires OpenGL 1.5
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by thepname
argument toQueryObjectParameteruiAMD
,GetQueryObjectiv
,GetQueryObjectuiv
,GetQueryObjecti64v
, andGetQueryObjectui64v
.static final int
Accepted by theparam
argument toQueryObjectParameteruiAMD
.static final int
Accepted by theparam
argument toQueryObjectParameteruiAMD
.static final int
Accepted by theparam
argument toQueryObjectParameteruiAMD
.static final int
Accepted by theparam
argument toQueryObjectParameteruiAMD
.static final int
Accepted by theparam
argument toQueryObjectParameteruiAMD
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glQueryObjectParameteruiAMD
(int target, int id, int pname, int param) Changes the value of a query object parameter.
-
Field Details
-
GL_OCCLUSION_QUERY_EVENT_MASK_AMD
public static final int GL_OCCLUSION_QUERY_EVENT_MASK_AMDAccepted by thepname
argument toQueryObjectParameteruiAMD
,GetQueryObjectiv
,GetQueryObjectuiv
,GetQueryObjecti64v
, andGetQueryObjectui64v
.- See Also:
-
GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD
public static final int GL_QUERY_DEPTH_PASS_EVENT_BIT_AMDAccepted by theparam
argument toQueryObjectParameteruiAMD
.- See Also:
-
GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD
public static final int GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMDAccepted by theparam
argument toQueryObjectParameteruiAMD
.- See Also:
-
GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD
public static final int GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMDAccepted by theparam
argument toQueryObjectParameteruiAMD
.- See Also:
-
GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD
public static final int GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMDAccepted by theparam
argument toQueryObjectParameteruiAMD
.- See Also:
-
GL_QUERY_ALL_EVENT_BITS_AMD
public static final int GL_QUERY_ALL_EVENT_BITS_AMDAccepted by theparam
argument toQueryObjectParameteruiAMD
.- See Also:
-
-
Method Details
-
glQueryObjectParameteruiAMD
public static void glQueryObjectParameteruiAMD(int target, int id, int pname, int param) Changes the value of a query object parameter.- Parameters:
target
- a valid query target. One of:SAMPLES_PASSED
PRIMITIVES_GENERATED
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
TIME_ELAPSED
TIMESTAMP
ANY_SAMPLES_PASSED
ANY_SAMPLES_PASSED_CONSERVATIVE
id
- a value returned from a previous call toGenQueries
pname
- the parameter to modify. Must be:OCCLUSION_QUERY_EVENT_MASK_AMD
param
- the new value. One of:QUERY_DEPTH_PASS_EVENT_BIT_AMD
QUERY_DEPTH_FAIL_EVENT_BIT_AMD
QUERY_STENCIL_FAIL_EVENT_BIT_AMD
QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD
QUERY_ALL_EVENT_BITS_AMD
-