org.jrabbit.base.graphics
Class GLSettings.Enable

java.lang.Object
  extended by org.jrabbit.base.graphics.GLSettings.Enable
Enclosing class:
GLSettings

public static class GLSettings.Enable
extends java.lang.Object

Handles enabling and disabling general OpenGL settings.

Author:
Chris Molini

Constructor Summary
GLSettings.Enable()
           
 
Method Summary
static void blending(boolean enable)
          Controls whether blending calculations can be used.
static void depth(boolean enable)
          Controls whether depth calculations can be used.
static void lighting(boolean enable)
          Controls whether lighting can be used.
static void textures(boolean enable)
          Controls whether textures can be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSettings.Enable

public GLSettings.Enable()
Method Detail

textures

public static void textures(boolean enable)
Controls whether textures can be used.

Parameters:
enable - Whether or not to use textures.

lighting

public static void lighting(boolean enable)
Controls whether lighting can be used. NOTE: Lighting is per-vertex and the default way of rendering images are simple textured quads, which may lead to poor quality. There is no attempt to accommodate lighting in the base jRabbit graphics package; support for lighting must come from the developer.

Parameters:
enable - Whether or not to use lighting.

depth

public static void depth(boolean enable)
Controls whether depth calculations can be used. NOTE: This really shouldn't be used in a 2D context unless you know what you're doing.

Parameters:
enable - Whether or not to use depth testing.

blending

public static void blending(boolean enable)
Controls whether blending calculations can be used. If blending is turned off, simple color replacement occurs and alpha transparency is ignored. Obviously, this is usually a bad thing for 2D graphics.

Parameters:
enable - Whether or not to use blending.