All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengl.AMDOcclusionQueryEvent Maven / Gradle / Ivy

Go to download

The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengl;

import org.lwjgl.system.*;

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 GL15C#glGetQueryObjectiv GetQueryObjectiv}, {@link GL15C#glGetQueryObjectuiv GetQueryObjectuiv}, * {@link GL33C#glGetQueryObjecti64v GetQueryObjecti64v}, and {@link GL33C#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 GL15C#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(@NativeType("GLenum") int target, @NativeType("GLuint") int id, @NativeType("GLenum") int pname, @NativeType("GLuint") int param); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy