org.xith3d.render.lwjgl
Class LightingStateUnitPeer
java.lang.Object
org.xith3d.render.lwjgl.LightingStateUnitPeer
- All Implemented Interfaces:
- StateUnitPeer
public class LightingStateUnitPeer
- extends java.lang.Object
- implements StateUnitPeer
Hendles the setting of rendering attributes, specifically the depth test and
alpha test. This will be expanded to also support stencil tests in the
future.
|
Method Summary |
void |
apply(RenderAtom<?> atom,
StateUnit stateUnit,
java.lang.Object glObj,
CanvasPeer canvasPeer,
RenderPeer renderPeer,
OpenGLCapabilities glCaps,
View view,
OpenGLStatesCache statesCache,
RenderOptions options,
long nanoTime,
long nanoStep,
RenderPeer.RenderMode renderMode,
long frameId)
Takes the StateUnit assigned to the specified atom and sets up the graphics
environment, so that it is correct. |
static int |
getGlLight(int lightIndex)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightingStateUnitPeer
public LightingStateUnitPeer()
getGlLight
public static final int getGlLight(int lightIndex)
apply
public void apply(RenderAtom<?> atom,
StateUnit stateUnit,
java.lang.Object glObj,
CanvasPeer canvasPeer,
RenderPeer renderPeer,
OpenGLCapabilities glCaps,
View view,
OpenGLStatesCache statesCache,
RenderOptions options,
long nanoTime,
long nanoStep,
RenderPeer.RenderMode renderMode,
long frameId)
- Description copied from interface:
StateUnitPeer
- Takes the StateUnit assigned to the specified atom and sets up the graphics
environment, so that it is correct. Do so by only updating, where there is
a change.
The whole atom is supplied here because there might be some StateUnits, that
need to access the geometry in order to work properly.
- Specified by:
apply in interface StateUnitPeer