List of usage examples for org.lwjgl.opengl EXTBlendSubtract GL_FUNC_SUBTRACT_EXT
int GL_FUNC_SUBTRACT_EXT
To view the source code for org.lwjgl.opengl EXTBlendSubtract GL_FUNC_SUBTRACT_EXT.
Click Source Link
From source file:com.ardor3d.scene.state.lwjgl.LwjglBlendStateUtil.java
License:Open Source License
protected static int getGLEquationValue(final BlendEquation eq, final ContextCapabilities caps) { switch (eq) { case Min:/*from ww w . j a v a2s. co m*/ if (caps.isMinMaxBlendEquationsSupported()) { return EXTBlendMinmax.GL_MIN_EXT; } // FALLS THROUGH case Max: if (caps.isMinMaxBlendEquationsSupported()) { return EXTBlendMinmax.GL_MAX_EXT; } else { return ARBImaging.GL_FUNC_ADD; } case Subtract: if (caps.isSubtractBlendEquationsSupported()) { return EXTBlendSubtract.GL_FUNC_SUBTRACT_EXT; } // FALLS THROUGH case ReverseSubtract: if (caps.isSubtractBlendEquationsSupported()) { return EXTBlendSubtract.GL_FUNC_REVERSE_SUBTRACT_EXT; } // FALLS THROUGH case Add: return ARBImaging.GL_FUNC_ADD; } throw new IllegalArgumentException("Invalid blend equation: " + eq); }