Package org.lwjgl.opengles
Class EXTOcclusionQueryBoolean
- java.lang.Object
-
- org.lwjgl.opengles.EXTOcclusionQueryBoolean
-
public class EXTOcclusionQueryBoolean extends java.lang.ObjectNative bindings to the EXT_occlusion_query_boolean extension.This extension defines a mechanism whereby an application can query whether any pixels (or, more precisely, samples) are drawn by a primitive or group of primitives.
The primary purpose of such a query (hereafter referred to as an "occlusion query") is to determine the visibility of an object. Typically, the application will render the major occluders in the scene, then perform an occlusion query for each detail object in the scene. On subsequent frames, the previous results of the occlusion queries can be used to decide whether to draw an object or not.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
GL_ANY_SAMPLES_PASSED_EXTAccepted by thetargetparameter of BeginQueryEXT, EndQueryEXT, and GetQueryivEXT.static intGL_CURRENT_QUERY_EXTAccepted by thepnameparameter of GetQueryivEXT.static intGL_QUERY_RESULT_AVAILABLE_EXT
GL_QUERY_RESULT_EXTAccepted by thepnameparameter of GetQueryObjectivEXT and GetQueryObjectuivEXT.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglBeginQueryEXT(int target, int id)static voidglDeleteQueriesEXT(int id)static voidglDeleteQueriesEXT(int[] ids)Array version of:DeleteQueriesEXTstatic voidglDeleteQueriesEXT(java.nio.IntBuffer ids)static voidglEndQueryEXT(int target)static intglGenQueriesEXT()static voidglGenQueriesEXT(int[] ids)Array version of:GenQueriesEXTstatic voidglGenQueriesEXT(java.nio.IntBuffer ids)static intglGetQueryiEXT(int target, int pname)static voidglGetQueryivEXT(int target, int pname, int[] params)Array version of:GetQueryivEXTstatic voidglGetQueryivEXT(int target, int pname, java.nio.IntBuffer params)static intglGetQueryObjectuiEXT(int id, int pname)static voidglGetQueryObjectuivEXT(int id, int pname, int[] params)Array version of:GetQueryObjectuivEXTstatic voidglGetQueryObjectuivEXT(int id, int pname, java.nio.IntBuffer params)static booleanglIsQueryEXT(int id)
-
-
-
Field Detail
-
GL_ANY_SAMPLES_PASSED_EXT
public static final int GL_ANY_SAMPLES_PASSED_EXT
Accepted by thetargetparameter of BeginQueryEXT, EndQueryEXT, and GetQueryivEXT.- See Also:
- Constant Field Values
-
GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
public static final int GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
Accepted by thetargetparameter of BeginQueryEXT, EndQueryEXT, and GetQueryivEXT.- See Also:
- Constant Field Values
-
GL_CURRENT_QUERY_EXT
public static final int GL_CURRENT_QUERY_EXT
Accepted by thepnameparameter of GetQueryivEXT.- See Also:
- Constant Field Values
-
GL_QUERY_RESULT_EXT
public static final int GL_QUERY_RESULT_EXT
Accepted by thepnameparameter of GetQueryObjectivEXT and GetQueryObjectuivEXT.- See Also:
- Constant Field Values
-
GL_QUERY_RESULT_AVAILABLE_EXT
public static final int GL_QUERY_RESULT_AVAILABLE_EXT
Accepted by thepnameparameter of GetQueryObjectivEXT and GetQueryObjectuivEXT.- See Also:
- Constant Field Values
-
-
Method Detail
-
glGenQueriesEXT
public static void glGenQueriesEXT(java.nio.IntBuffer ids)
-
glGenQueriesEXT
public static int glGenQueriesEXT()
-
glDeleteQueriesEXT
public static void glDeleteQueriesEXT(java.nio.IntBuffer ids)
-
glDeleteQueriesEXT
public static void glDeleteQueriesEXT(int id)
-
glIsQueryEXT
public static boolean glIsQueryEXT(int id)
-
glBeginQueryEXT
public static void glBeginQueryEXT(int target, int id)
-
glEndQueryEXT
public static void glEndQueryEXT(int target)
-
glGetQueryivEXT
public static void glGetQueryivEXT(int target, int pname, java.nio.IntBuffer params)
-
glGetQueryiEXT
public static int glGetQueryiEXT(int target, int pname)
-
glGetQueryObjectuivEXT
public static void glGetQueryObjectuivEXT(int id, int pname, java.nio.IntBuffer params)
-
glGetQueryObjectuiEXT
public static int glGetQueryObjectuiEXT(int id, int pname)
-
glGenQueriesEXT
public static void glGenQueriesEXT(int[] ids)
Array version of:GenQueriesEXT
-
glDeleteQueriesEXT
public static void glDeleteQueriesEXT(int[] ids)
Array version of:DeleteQueriesEXT
-
glGetQueryivEXT
public static void glGetQueryivEXT(int target, int pname, int[] params)Array version of:GetQueryivEXT
-
glGetQueryObjectuivEXT
public static void glGetQueryObjectuivEXT(int id, int pname, int[] params)Array version of:GetQueryObjectuivEXT
-
-