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

org.lwjgl.opengles.QCOMAlphaTest Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

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.opengles;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;

/**
 * Native bindings to the QCOM_alpha_test extension.
 * 
 * 

This extension reintroduces the alpha test per-fragment operation from OpenGL ES 1.x. Some hardware has a dedicated unit capable of performing this * operation, and it can save ALU operations in the fragment shader by avoiding the conditional discard.

*/ public class QCOMAlphaTest { /** * Accepted by the {@code cap} parameter of Enable and Disable, and IsEnabled, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, and * GetFloatv. */ public static final int GL_ALPHA_TEST_QCOM = 0xBC0; /** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, and GetFloatv. */ public static final int GL_ALPHA_TEST_FUNC_QCOM = 0xBC1, GL_ALPHA_TEST_REF_QCOM = 0xBC2; static { GLES.initialize(); } protected QCOMAlphaTest() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glAlphaFuncQCOM ); } // --- [ glAlphaFuncQCOM ] --- public static native void glAlphaFuncQCOM(@NativeType("GLenum") int func, @NativeType("GLfloat") float ref); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy