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
FieldsModifier and TypeFieldDescriptionstatic final intAccepted by thepnameargument toQueryObjectParameteruiAMD,GetQueryObjectiv,GetQueryObjectuiv,GetQueryObjecti64v, andGetQueryObjectui64v.static final intAccepted by theparamargument toQueryObjectParameteruiAMD.static final intAccepted by theparamargument toQueryObjectParameteruiAMD.static final intAccepted by theparamargument toQueryObjectParameteruiAMD.static final intAccepted by theparamargument toQueryObjectParameteruiAMD.static final intAccepted by theparamargument toQueryObjectParameteruiAMD. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidglQueryObjectParameteruiAMD(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 thepnameargument 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 theparamargument toQueryObjectParameteruiAMD.- See Also:
-
GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD
public static final int GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMDAccepted by theparamargument toQueryObjectParameteruiAMD.- See Also:
-
GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD
public static final int GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMDAccepted by theparamargument toQueryObjectParameteruiAMD.- See Also:
-
GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD
public static final int GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMDAccepted by theparamargument toQueryObjectParameteruiAMD.- See Also:
-
GL_QUERY_ALL_EVENT_BITS_AMD
public static final int GL_QUERY_ALL_EVENT_BITS_AMDAccepted by theparamargument 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_PASSEDPRIMITIVES_GENERATEDTRANSFORM_FEEDBACK_PRIMITIVES_WRITTENTIME_ELAPSEDTIMESTAMPANY_SAMPLES_PASSEDANY_SAMPLES_PASSED_CONSERVATIVEid- a value returned from a previous call toGenQueriespname- the parameter to modify. Must be:OCCLUSION_QUERY_EVENT_MASK_AMDparam- the new value. One of:QUERY_DEPTH_PASS_EVENT_BIT_AMDQUERY_DEPTH_FAIL_EVENT_BIT_AMDQUERY_STENCIL_FAIL_EVENT_BIT_AMDQUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMDQUERY_ALL_EVENT_BITS_AMD
-