Example usage for org.lwjgl.opengl ARBTextureEnvCombine GL_ADD_SIGNED_ARB

List of usage examples for org.lwjgl.opengl ARBTextureEnvCombine GL_ADD_SIGNED_ARB

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBTextureEnvCombine GL_ADD_SIGNED_ARB.

Prototype

int GL_ADD_SIGNED_ARB

To view the source code for org.lwjgl.opengl ARBTextureEnvCombine GL_ADD_SIGNED_ARB.

Click Source Link

Document

Accepted by the params parameter of TexEnvf, TexEnvi, TexEnvfv, and TexEnviv when the pname parameter value is COMBINE_RGB_ARB or COMBINE_ALPHA_ARB.

Usage

From source file:com.ardor3d.scene.state.lwjgl.util.LwjglTextureUtil.java

License:Open Source License

public static int getGLCombineFuncAlpha(final CombinerFunctionAlpha combineFunc) {
    switch (combineFunc) {
    case Modulate:
        return GL11.GL_MODULATE;
    case Replace:
        return GL11.GL_REPLACE;
    case Add://from   w w  w. ja v a  2  s .  c o m
        return GL11.GL_ADD;
    case AddSigned:
        return ARBTextureEnvCombine.GL_ADD_SIGNED_ARB;
    case Subtract:
        return ARBTextureEnvCombine.GL_SUBTRACT_ARB;
    case Interpolate:
        return ARBTextureEnvCombine.GL_INTERPOLATE_ARB;
    }
    throw new IllegalArgumentException("invalid CombinerFunctionAlpha type: " + combineFunc);
}

From source file:com.ardor3d.scene.state.lwjgl.util.LwjglTextureUtil.java

License:Open Source License

public static int getGLCombineFuncRGB(final CombinerFunctionRGB combineFunc) {
    switch (combineFunc) {
    case Modulate:
        return GL11.GL_MODULATE;
    case Replace:
        return GL11.GL_REPLACE;
    case Add:/*from  www .  j  av  a 2s . c  o m*/
        return GL11.GL_ADD;
    case AddSigned:
        return ARBTextureEnvCombine.GL_ADD_SIGNED_ARB;
    case Subtract:
        return ARBTextureEnvCombine.GL_SUBTRACT_ARB;
    case Interpolate:
        return ARBTextureEnvCombine.GL_INTERPOLATE_ARB;
    case Dot3RGB:
        return ARBTextureEnvDot3.GL_DOT3_RGB_ARB;
    case Dot3RGBA:
        return ARBTextureEnvDot3.GL_DOT3_RGBA_ARB;
    }
    throw new IllegalArgumentException("invalid CombinerFunctionRGB type: " + combineFunc);
}