Example usage for org.lwjgl.opengl ARBTextureCubeMap GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB

List of usage examples for org.lwjgl.opengl ARBTextureCubeMap GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBTextureCubeMap GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB.

Prototype

int GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB

To view the source code for org.lwjgl.opengl ARBTextureCubeMap GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB.

Click Source Link

Document

Accepted by the target parameter of GetTexImage, GetTexLevelParameteriv, GetTexLevelParameterfv, TexImage2D, CopyTexImage2D, TexSubImage2D, and CopySubTexImage2D.

Usage

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

License:Open Source License

public static int getGLCubeMapFace(final TextureCubeMap.Face face) {
    switch (face) {
    case PositiveX:
        return ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB;
    case NegativeX:
        return ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB;
    case PositiveY:
        return ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB;
    case NegativeY:
        return ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB;
    case PositiveZ:
        return ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB;
    case NegativeZ:
        return ARBTextureCubeMap.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB;
    }//from w  w w. ja  v a  2 s .c  om
    throw new IllegalArgumentException("invalid cubemap face: " + face);
}