Example usage for org.lwjgl.opengl EXTStencilWrap GL_INCR_WRAP_EXT

List of usage examples for org.lwjgl.opengl EXTStencilWrap GL_INCR_WRAP_EXT

Introduction

In this page you can find the example usage for org.lwjgl.opengl EXTStencilWrap GL_INCR_WRAP_EXT.

Prototype

int GL_INCR_WRAP_EXT

To view the source code for org.lwjgl.opengl EXTStencilWrap GL_INCR_WRAP_EXT.

Click Source Link

Document

Accepted by the sfail , dpfail , and dppass parameter of StencilOp.

Usage

From source file:com.ardor3d.scene.state.lwjgl.LwjglStencilStateUtil.java

License:Open Source License

private static int getGLStencilOp(final StencilOperation operation, final ContextCapabilities caps) {
    switch (operation) {
    case Keep://from  ww  w .  j  a v  a 2s.  c om
        return GL11.GL_KEEP;
    case DecrementWrap:
        if (caps.isStencilWrapSupported()) {
            return EXTStencilWrap.GL_DECR_WRAP_EXT;
        }
        // FALLS THROUGH
    case Decrement:
        return GL11.GL_DECR;
    case IncrementWrap:
        if (caps.isStencilWrapSupported()) {
            return EXTStencilWrap.GL_INCR_WRAP_EXT;
        }
        // FALLS THROUGH
    case Increment:
        return GL11.GL_INCR;
    case Invert:
        return GL11.GL_INVERT;
    case Replace:
        return GL11.GL_REPLACE;
    case Zero:
        return GL11.GL_ZERO;
    }
    throw new IllegalArgumentException("unknown operation: " + operation);
}