org.lwjgl.opengles.EXTDrawBuffersIndexed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opengles Show documentation
Show all versions of lwjgl-opengles Show documentation
A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
import static org.lwjgl.system.Checks.*;
/**
* Native bindings to the EXT_draw_buffers_indexed extension.
*
* This extension builds upon the EXT_draw_buffers extension. In EXT_draw_buffers (part of OpenGL ES 3.0), separate values could be written to each color
* buffer, but the blend enable, blend functions, blend equations and color write masks are global and apply to all color outputs.
*
* This extension provides the ability to independently
*
*
* - enable or disable blending
* - set the blend equations
* - set the blend functions, and
* - set the color write masks per color output.
*
*
* This extension introduces indexed versions of the enable, blend equation, blend function, and color mask commands, as well as associated indexed
* queries in order to control and query these states independently on a per-color output basis.
*
* Requres {@link GLES30 GLES 3.0} or {@link EXTDrawBuffers EXT_draw_buffers}.
*/
public class EXTDrawBuffersIndexed {
static { GLES.initialize(); }
protected EXTDrawBuffersIndexed() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glEnableiEXT, caps.glDisableiEXT, caps.glBlendEquationiEXT, caps.glBlendEquationSeparateiEXT, caps.glBlendFunciEXT,
caps.glBlendFuncSeparateiEXT, caps.glColorMaskiEXT, caps.glIsEnablediEXT
);
}
// --- [ glEnableiEXT ] ---
public static native void nglEnableiEXT(int target, int index);
public static void glEnableiEXT(int target, int index) {
nglEnableiEXT(target, index);
}
// --- [ glDisableiEXT ] ---
public static native void nglDisableiEXT(int target, int index);
public static void glDisableiEXT(int target, int index) {
nglDisableiEXT(target, index);
}
// --- [ glBlendEquationiEXT ] ---
public static native void nglBlendEquationiEXT(int buf, int mode);
public static void glBlendEquationiEXT(int buf, int mode) {
nglBlendEquationiEXT(buf, mode);
}
// --- [ glBlendEquationSeparateiEXT ] ---
public static native void nglBlendEquationSeparateiEXT(int buf, int modeRGB, int modeAlpha);
public static void glBlendEquationSeparateiEXT(int buf, int modeRGB, int modeAlpha) {
nglBlendEquationSeparateiEXT(buf, modeRGB, modeAlpha);
}
// --- [ glBlendFunciEXT ] ---
public static native void nglBlendFunciEXT(int buf, int src, int dst);
public static void glBlendFunciEXT(int buf, int src, int dst) {
nglBlendFunciEXT(buf, src, dst);
}
// --- [ glBlendFuncSeparateiEXT ] ---
public static native void nglBlendFuncSeparateiEXT(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha);
public static void glBlendFuncSeparateiEXT(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
nglBlendFuncSeparateiEXT(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
}
// --- [ glColorMaskiEXT ] ---
public static native void nglColorMaskiEXT(int index, boolean r, boolean g, boolean b, boolean a);
public static void glColorMaskiEXT(int index, boolean r, boolean g, boolean b, boolean a) {
nglColorMaskiEXT(index, r, g, b, a);
}
// --- [ glIsEnablediEXT ] ---
public static native boolean nglIsEnablediEXT(int target, int index);
public static boolean glIsEnablediEXT(int target, int index) {
return nglIsEnablediEXT(target, index);
}
}