List of usage examples for org.lwjgl.opengl GL11 glLightModeli
public static native void glLightModeli(@NativeType("GLenum") int pname, @NativeType("GLint") int param);
From source file:com.ardor3d.scene.state.lwjgl.LwjglLightStateUtil.java
License:Open Source License
private static void setTwoSided(final boolean twoSided, final LightStateRecord record) { if (!record.isValid() || record.isTwoSidedOn() != twoSided) { if (twoSided) { GL11.glLightModeli(GL11.GL_LIGHT_MODEL_TWO_SIDE, GL11.GL_TRUE); } else {//from w w w.j a va 2 s . co m GL11.glLightModeli(GL11.GL_LIGHT_MODEL_TWO_SIDE, GL11.GL_FALSE); } record.setTwoSidedOn(twoSided); } }
From source file:com.ardor3d.scene.state.lwjgl.LwjglLightStateUtil.java
License:Open Source License
private static void setLocalViewer(final boolean localViewer, final LightStateRecord record) { if (!record.isValid() || record.isLocalViewer() != localViewer) { if (localViewer) { GL11.glLightModeli(GL11.GL_LIGHT_MODEL_LOCAL_VIEWER, GL11.GL_TRUE); } else {/* w w w . j av a 2 s . c o m*/ GL11.glLightModeli(GL11.GL_LIGHT_MODEL_LOCAL_VIEWER, GL11.GL_FALSE); } record.setLocalViewer(localViewer); } }
From source file:com.ardor3d.scene.state.lwjgl.LwjglLightStateUtil.java
License:Open Source License
private static void setSpecularControl(final boolean separateSpecularOn, final LightStateRecord record) { if (!record.isValid() || record.isSeparateSpecular() != separateSpecularOn) { if (separateSpecularOn) { GL11.glLightModeli(GL12.GL_LIGHT_MODEL_COLOR_CONTROL, GL12.GL_SEPARATE_SPECULAR_COLOR); } else {/*from w ww . j a va 2 s . c o m*/ GL11.glLightModeli(GL12.GL_LIGHT_MODEL_COLOR_CONTROL, GL12.GL_SINGLE_COLOR); } record.setSeparateSpecular(separateSpecularOn); } }
From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java
License:Open Source License
@Override public void setLightMode(int mode) { GL11.glLightModeli(GL12.GL_LIGHT_MODEL_COLOR_CONTROL, lightModeToGL[mode]); }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 lightModel(int lightModel, int value) { GL11.glLightModeli(lightModel, value); return this; }
From source file:tk.ivybits.engine.gl.GL.java
License:Open Source License
public static void glLightModeli(int a, int b) { GL11.glLightModeli(a, b); }