Constructor and Description |
---|
LightModelState()
Constructs light model state.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies this OpenGL state.
|
java.awt.Color |
getAmbient()
Gets the ambient color attribute.
|
int |
getAttributeBits()
Gets the OpenGL attribute bits for this state.
|
int |
getColorControl()
Gets the color control attribute.
|
boolean |
getLocalViewer()
Gets the local viewer attribute.
|
boolean |
getTwoSide()
Gets the two-sided lighting attribute.
|
boolean |
hasAmbient()
Determines whether the ambient color attribute is set.
|
boolean |
hasColorControl()
Determines whether the color control attribute is set.
|
boolean |
hasLocalViewer()
Determines whether the local viewer attribute is set.
|
boolean |
hasTwoSide()
Determines whether the two-sided lighting attribute is set.
|
void |
setAmbient(java.awt.Color color)
Sets the ambient color attribute.
|
void |
setColorControl(int control)
Sets the color control attribute.
|
void |
setLocalViewer(boolean local)
Sets the local viewer attribute.
|
void |
setTwoSide(boolean local)
Sets the two-sided lighting attribute.
|
void |
unsetAmbient()
Unsets the ambient color attribute.
|
void |
unsetColorControl()
Unsets the color control attribute.
|
void |
unsetLocalViewer()
Unsets the local viewer attribute.
|
void |
unsetTwoSide()
Unsets the two-sided lighting attribute.
|
public boolean hasAmbient()
public java.awt.Color getAmbient()
public void setAmbient(java.awt.Color color)
color
- the ambient color.public void unsetAmbient()
public boolean hasColorControl()
public int getColorControl()
public void setColorControl(int control)
control
- the color control.public void unsetColorControl()
public boolean hasLocalViewer()
public boolean getLocalViewer()
public void setLocalViewer(boolean local)
local
- the local viewer.public void unsetLocalViewer()
public boolean hasTwoSide()
public boolean getTwoSide()
public void setTwoSide(boolean local)
local
- the two-sided lighting.public void unsetTwoSide()
public void apply()
State
public int getAttributeBits()
State
State.apply()
. If these bits are passed to glPushAttrib before
calling State.apply()
, then glPopAttrib will restore any OpenGL
state that is changed by that method.getAttributeBits
in interface State