org.lwjgl.opengl.AMDOcclusionQueryEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.lwjgl.opengl Show documentation
Show all versions of org.lwjgl.opengl Show documentation
LWJGL OSGi bundle (OpenGL bindings)
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import static org.lwjgl.system.Checks.*;
/**
* 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 {@link GL15 OpenGL 1.5}.
*/
public class AMDOcclusionQueryEvent {
/**
* Accepted by the {@code pname} argument to {@link #glQueryObjectParameteruiAMD QueryObjectParameteruiAMD}, {@link GL15#glGetQueryObjectiv GetQueryObjectiv}, {@link GL15#glGetQueryObjectuiv GetQueryObjectuiv},
* {@link GL33#glGetQueryObjecti64v GetQueryObjecti64v}, and {@link GL33#glGetQueryObjectui64v GetQueryObjectui64v}.
*/
public static final int GL_OCCLUSION_QUERY_EVENT_MASK_AMD = 0x874F;
/** Accepted by the {@code param} argument to {@link #glQueryObjectParameteruiAMD QueryObjectParameteruiAMD}. */
public static final int
GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD = 0x1,
GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD = 0x2,
GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD = 0x4,
GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD = 0x8,
GL_QUERY_ALL_EVENT_BITS_AMD = 0xFFFFFFFF;
static { GL.initialize(); }
protected AMDOcclusionQueryEvent() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glQueryObjectParameteruiAMD
);
}
// --- [ glQueryObjectParameteruiAMD ] ---
/**
* Changes the value of a query object parameter.
*
* @param target a valid query target. One of:
{@link GL15#GL_SAMPLES_PASSED SAMPLES_PASSED} {@link GL30#GL_PRIMITIVES_GENERATED PRIMITIVES_GENERATED} {@link GL30#GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN} {@link GL33#GL_TIME_ELAPSED TIME_ELAPSED} {@link GL33#GL_TIMESTAMP TIMESTAMP} {@link GL33#GL_ANY_SAMPLES_PASSED ANY_SAMPLES_PASSED} {@link GL43#GL_ANY_SAMPLES_PASSED_CONSERVATIVE ANY_SAMPLES_PASSED_CONSERVATIVE}
* @param id a value returned from a previous call to {@link GL15#glGenQueries GenQueries}
* @param pname the parameter to modify. Must be:
{@link #GL_OCCLUSION_QUERY_EVENT_MASK_AMD OCCLUSION_QUERY_EVENT_MASK_AMD}
* @param param the new value. One of:
{@link #GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD QUERY_DEPTH_PASS_EVENT_BIT_AMD} {@link #GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD QUERY_DEPTH_FAIL_EVENT_BIT_AMD} {@link #GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD QUERY_STENCIL_FAIL_EVENT_BIT_AMD} {@link #GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD} {@link #GL_QUERY_ALL_EVENT_BITS_AMD QUERY_ALL_EVENT_BITS_AMD}
*/
public static native void glQueryObjectParameteruiAMD(int target, int id, int pname, int param);
}