com.jme.scene.state.lwjgl
Class LWJGLLightState

java.lang.Object
  extended bycom.jme.scene.state.RenderState
      extended bycom.jme.scene.state.LightState
          extended bycom.jme.scene.state.lwjgl.LWJGLLightState
All Implemented Interfaces:
java.io.Serializable

public class LWJGLLightState
extends LightState

LWJGLLightState subclasses the Light class using the LWJGL API to access OpenGL for light processing.

Version:
$Id: LWJGLLightState.java,v 1.10 2004/09/14 21:52:14 mojomonkey Exp $
Author:
Mark Powell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jme.scene.state.LightState
COMBINE_CLOSEST, COMBINE_FIRST, COMBINE_RECENT_ENABLED, INHERIT, MAX_LIGHTS_ALLOWED, OFF, REPLACE, twoSidedOn
 
Fields inherited from class com.jme.scene.state.RenderState
RS_ALPHA, RS_ATTRIBUTE, RS_CULL, RS_DITHER, RS_FOG, RS_FRAGMENT_PROGRAM, RS_GLSL_SHADER_OBJECTS, RS_LIGHT, RS_MATERIAL, RS_MAX_STATE, RS_SHADE, RS_STENCIL, RS_TEXTURE, RS_VERTEX_PROGRAM, RS_WIREFRAME, RS_ZBUFFER
 
Constructor Summary
LWJGLLightState()
          Constructor instantiates a new LWJGLLightState.
 
Method Summary
 void apply()
          set iterates over the light queue and processes each individual light.
 RenderState extract(java.util.Stack stack, Spatial spat)
          Extracts from the stack the correct renderstate that should apply to the given spatial.
 
Methods inherited from class com.jme.scene.state.LightState
attach, detach, detachAll, get, getQuantity, getTwoSidedLighting, getType, setTwoSidedLighting
 
Methods inherited from class com.jme.scene.state.RenderState
isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LWJGLLightState

public LWJGLLightState()
Constructor instantiates a new LWJGLLightState.

Method Detail

apply

public void apply()
set iterates over the light queue and processes each individual light.

Specified by:
apply in class RenderState
See Also:
RenderState.apply()

extract

public RenderState extract(java.util.Stack stack,
                           Spatial spat)
Description copied from class: RenderState
Extracts from the stack the correct renderstate that should apply to the given spatial. This is mainly used for RenderStates that can be cumulitive such as TextureState or LightState. By default, the top of the static is returned. This function should not be called by users directly.

Overrides:
extract in class RenderState
Parameters:
stack - The stack to extract render states from.
spat - The spatial to apply the render states too.
Returns:
The render state to use.