Package org.lwjgl.opengl
Class AMDOcclusionQueryEvent
- java.lang.Object
-
- org.lwjgl.opengl.AMDOcclusionQueryEvent
-
public class AMDOcclusionQueryEvent extends java.lang.Object
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
Fields Modifier and Type Field and Description static int
GL_OCCLUSION_QUERY_EVENT_MASK_AMD
Accepted by thepname
argument toQueryObjectParameteruiAMD
,GetQueryObjectiv
,GetQueryObjectuiv
,GetQueryObjecti64v
, andGetQueryObjectui64v
.static int
GL_QUERY_ALL_EVENT_BITS_AMD
GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD
GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD
GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD
GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMDAccepted by theparam
argument toQueryObjectParameteruiAMD
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
glQueryObjectParameteruiAMD(int target, int id, int pname, int param)
Changes the value of a query object parameter.
-
-
-
Field Detail
-
GL_OCCLUSION_QUERY_EVENT_MASK_AMD
Accepted by thepname
argument toQueryObjectParameteruiAMD
,GetQueryObjectiv
,GetQueryObjectuiv
,GetQueryObjecti64v
, andGetQueryObjectui64v
.
-
-
Method Detail
-
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
-
-