org.lwjgl.opengles.OESDrawBuffersIndexed 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 OES_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.
*/
public class OESDrawBuffersIndexed {
static { GLES.initialize(); }
protected OESDrawBuffersIndexed() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glEnableiOES, caps.glDisableiOES, caps.glBlendEquationiOES, caps.glBlendEquationSeparateiOES, caps.glBlendFunciOES,
caps.glBlendFuncSeparateiOES, caps.glColorMaskiOES, caps.glIsEnablediOES
);
}
// --- [ glEnableiOES ] ---
public static native void nglEnableiOES(int target, int index);
public static void glEnableiOES(int target, int index) {
nglEnableiOES(target, index);
}
// --- [ glDisableiOES ] ---
public static native void nglDisableiOES(int target, int index);
public static void glDisableiOES(int target, int index) {
nglDisableiOES(target, index);
}
// --- [ glBlendEquationiOES ] ---
public static native void nglBlendEquationiOES(int buf, int mode);
public static void glBlendEquationiOES(int buf, int mode) {
nglBlendEquationiOES(buf, mode);
}
// --- [ glBlendEquationSeparateiOES ] ---
public static native void nglBlendEquationSeparateiOES(int buf, int modeRGB, int modeAlpha);
public static void glBlendEquationSeparateiOES(int buf, int modeRGB, int modeAlpha) {
nglBlendEquationSeparateiOES(buf, modeRGB, modeAlpha);
}
// --- [ glBlendFunciOES ] ---
public static native void nglBlendFunciOES(int buf, int src, int dst);
public static void glBlendFunciOES(int buf, int src, int dst) {
nglBlendFunciOES(buf, src, dst);
}
// --- [ glBlendFuncSeparateiOES ] ---
public static native void nglBlendFuncSeparateiOES(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha);
public static void glBlendFuncSeparateiOES(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
nglBlendFuncSeparateiOES(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
}
// --- [ glColorMaskiOES ] ---
public static native void nglColorMaskiOES(int index, boolean r, boolean g, boolean b, boolean a);
public static void glColorMaskiOES(int index, boolean r, boolean g, boolean b, boolean a) {
nglColorMaskiOES(index, r, g, b, a);
}
// --- [ glIsEnablediOES ] ---
public static native boolean nglIsEnablediOES(int target, int index);
public static boolean glIsEnablediOES(int target, int index) {
return nglIsEnablediOES(target, index);
}
}