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.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
Accepted by the |
| public static final int | GL_ANY_SAMPLES_PASSED_EXT
Accepted by the |
| public static final int | GL_CURRENT_QUERY_EXT
Accepted by the |
| public static final int | GL_QUERY_RESULT_AVAILABLE_EXT
Accepted by the |
| public static final int | GL_QUERY_RESULT_EXT
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static native void | |
| public static void | |
| public static void | |
| public static void | |
| public static native void | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static void | |
| public static native boolean | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void |
| GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT | back to summary |
|---|---|
| public static final int GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT Accepted by the | |
| GL_ANY_SAMPLES_PASSED_EXT | back to summary |
|---|---|
| public static final int GL_ANY_SAMPLES_PASSED_EXT Accepted by the | |
| GL_CURRENT_QUERY_EXT | back to summary |
|---|---|
| public static final int GL_CURRENT_QUERY_EXT Accepted by the | |
| GL_QUERY_RESULT_AVAILABLE_EXT | back to summary |
|---|---|
| public static final int GL_QUERY_RESULT_AVAILABLE_EXT Accepted by the | |
| GL_QUERY_RESULT_EXT | back to summary |
|---|---|
| public static final int GL_QUERY_RESULT_EXT Accepted by the | |
| EXTOcclusionQueryBoolean | back to summary |
|---|---|
| protected EXTOcclusionQueryBoolean() | |
| glBeginQueryEXT | back to summary |
|---|---|
| public static native void glBeginQueryEXT(int target, int id) | |
| glDeleteQueriesEXT | back to summary |
|---|---|
| public static void glDeleteQueriesEXT(IntBuffer ids) | |
| glDeleteQueriesEXT | back to summary |
|---|---|
| public static void glDeleteQueriesEXT(int id) | |
| glDeleteQueriesEXT | back to summary |
|---|---|
| public static void glDeleteQueriesEXT(int[] ids) Array version of: | |
| glEndQueryEXT | back to summary |
|---|---|
| public static native void glEndQueryEXT(int target) | |
| glGenQueriesEXT | back to summary |
|---|---|
| public static void glGenQueriesEXT(IntBuffer ids) | |
| glGenQueriesEXT | back to summary |
|---|---|
public static int glGenQueriesEXT()
| |
| glGenQueriesEXT | back to summary |
|---|---|
| public static void glGenQueriesEXT(int[] ids) Array version of: | |
| glGetQueryiEXT | back to summary |
|---|---|
public static int glGetQueryiEXT(int target, int pname)
| |
| glGetQueryivEXT | back to summary |
|---|---|
| public static void glGetQueryivEXT(int target, int pname, IntBuffer params) | |
| glGetQueryivEXT | back to summary |
|---|---|
| public static void glGetQueryivEXT(int target, int pname, int[] params) Array version of: | |
| glGetQueryObjectuiEXT | back to summary |
|---|---|
public static int glGetQueryObjectuiEXT(int id, int pname)
| |
| glGetQueryObjectuivEXT | back to summary |
|---|---|
| public static void glGetQueryObjectuivEXT(int id, int pname, IntBuffer params) | |
| glGetQueryObjectuivEXT | back to summary |
|---|---|
| public static void glGetQueryObjectuivEXT(int id, int pname, int[] params) Array version of: | |
| glIsQueryEXT | back to summary |
|---|---|
public static native boolean glIsQueryEXT(int id)
| |
| nglDeleteQueriesEXT | back to summary |
|---|---|
| public static native void nglDeleteQueriesEXT(int n, long ids) | |
| nglGenQueriesEXT | back to summary |
|---|---|
| public static native void nglGenQueriesEXT(int n, long ids) | |
| nglGetQueryivEXT | back to summary |
|---|---|
| public static native void nglGetQueryivEXT(int target, int pname, long params) | |
| nglGetQueryObjectuivEXT | back to summary |
|---|---|
| public static native void nglGetQueryObjectuivEXT(int id, int pname, long params) | |