Example usage for org.lwjgl.opengl GL11 GL_EMISSION

List of usage examples for org.lwjgl.opengl GL11 GL_EMISSION

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 GL_EMISSION.

Prototype

int GL_EMISSION

To view the source code for org.lwjgl.opengl GL11 GL_EMISSION.

Click Source Link

Document

MaterialParameter

Usage

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

License:Open Source License

/**
 * Converts the color material setting of this state to a GL constant.
 * //from w  ww  . j a  v a 2  s  . c om
 * @return the GL constant
 */
private static int getGLColorMaterial(final ColorMaterial material) {
    switch (material) {
    case None:
        return GL11.GL_NONE;
    case Ambient:
        return GL11.GL_AMBIENT;
    case Diffuse:
        return GL11.GL_DIFFUSE;
    case AmbientAndDiffuse:
        return GL11.GL_AMBIENT_AND_DIFFUSE;
    case Emissive:
        return GL11.GL_EMISSION;
    case Specular:
        return GL11.GL_SPECULAR;
    }
    throw new IllegalArgumentException("invalid color material setting: " + material);
}

From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java

License:Open Source License

@Override
public void setMaterialEmissiveColor(float[] color) {
    GL11.glMaterial(GL11.GL_FRONT, GL11.GL_EMISSION, getDirectBuffer(color));
}