|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.renderer.state.RenderState
com.threerings.opengl.renderer.state.LightState
public class LightState
Contains the light state.
| Field Summary | |
|---|---|
protected Color4f |
_globalAmbient
The global ambient intensity. |
protected Light[] |
_lights
The states of the lights. |
static LightState |
DISABLED
A state that disables lighting (the default). |
| Fields inherited from class com.threerings.opengl.renderer.state.RenderState |
|---|
_defaults, _dirty, ALPHA_STATE, ARRAY_STATE, COLOR_MASK_STATE, COLOR_STATE, CULL_STATE, DEPTH_STATE, FOG_STATE, LIGHT_STATE, LINE_STATE, MATERIAL_STATE, POINT_STATE, POLYGON_STATE, SHADER_STATE, STATE_COUNT, STENCIL_STATE, TEXTURE_STATE, TRANSFORM_STATE |
| Constructor Summary | |
|---|---|
LightState(Light[] lights,
Color4f globalAmbient)
Creates a new light state. |
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies this state. |
Color4f |
getGlobalAmbient()
Returns a reference to the global ambient intensity. |
Light[] |
getLights()
Returns a reference to the array of lights. |
int |
getType()
Returns the type of this state. |
void |
setGlobalAmbient(Color4f color)
Sets the reference to the global ambient intensity. |
| Methods inherited from class com.threerings.opengl.renderer.state.RenderState |
|---|
copy, createDefaultSet, createEmptySet, getDefaults, isDirty, setDirty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LightState DISABLED
protected Light[] _lights
protected Color4f _globalAmbient
| Constructor Detail |
|---|
public LightState(Light[] lights,
Color4f globalAmbient)
| Method Detail |
|---|
public Light[] getLights()
public void setGlobalAmbient(Color4f color)
public Color4f getGlobalAmbient()
public int getType()
RenderState
getType in class RenderStatepublic void apply(Renderer renderer)
RenderState
apply in class RenderState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||