Constructor and Description |
---|
PolygonState()
Constructs polygon state.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies this OpenGL state.
|
int |
getAttributeBits()
Gets the OpenGL attribute bits for this state.
|
int |
getCullFace()
Gets the cull face mode.
|
int |
getFrontFace()
Gets the front face mode.
|
int |
getPolygonModeBack()
Gets the polygon mode for back faces.
|
int |
getPolygonModeFront()
Gets the polygon mode for front faces.
|
float |
getPolygonOffsetFactor()
Gets the polygon offset factor.
|
boolean |
getPolygonOffsetFill()
Gets the polygon offset fill.
|
boolean |
getPolygonOffsetLine()
Gets the polygon offset line.
|
boolean |
getPolygonOffsetPoint()
Gets the polygon offset point.
|
float |
getPolygonOffsetUnits()
Gets the polygon offset units.
|
byte[] |
getPolygonStipple()
Gets the polygon stipple.
|
boolean |
hasCullFace()
Determines whether cull face mode is set.
|
boolean |
hasFrontFace()
Determines whether front face mode is set.
|
boolean |
hasPolygonModeBack()
Determines whether polygon mode for back faces is set.
|
boolean |
hasPolygonModeFront()
Determines whether polygon mode for front faces is set.
|
boolean |
hasPolygonOffset()
Determines whether polygon offset is set.
|
boolean |
hasPolygonOffsetFill()
Determines whether polygon offset fill is set.
|
boolean |
hasPolygonOffsetLine()
Determines whether polygon offset line is set.
|
boolean |
hasPolygonOffsetPoint()
Determines whether polygon offset point is set.
|
boolean |
hasPolygonStipple()
Determines whether polygon stipple is set.
|
void |
setCullFace(int mode)
Sets the cull face mode.
|
void |
setFrontFace(int mode)
Sets the front face mode.
|
void |
setPolygonMode(int mode)
Sets the polygon mode for front and back faces.
|
void |
setPolygonModeBack(int mode)
Sets the polygon mode for back faces.
|
void |
setPolygonModeFront(int mode)
Sets the polygon mode for front faces.
|
void |
setPolygonOffset(float factor,
float units)
Sets the polygon offset.
|
void |
setPolygonOffsetFill(boolean fill)
Sets the polygon offset fill.
|
void |
setPolygonOffsetLine(boolean line)
Sets the polygon offset line.
|
void |
setPolygonOffsetPoint(boolean point)
Sets the polygon offset point.
|
void |
setPolygonStipple(byte[] mask)
Sets the polygon stipple.
|
void |
unsetCullFace()
Unsets the cull face mode.
|
void |
unsetFrontFace()
Unsets the front face mode.
|
void |
unsetPolygonMode()
Unsets the polygon mode for front and back faces.
|
void |
unsetPolygonModeBack()
Unsets the polygon mode for back faces.
|
void |
unsetPolygonModeFront()
Unsets the polygon mode for front faces.
|
void |
unsetPolygonOffset()
Unsets the polygon offset.
|
void |
unsetPolygonOffsetFill()
Unsets the polygon offset fill.
|
void |
unsetPolygonOffsetLine()
Unsets the polygon offset line.
|
void |
unsetPolygonStipple()
Unsets the polygon stipple.
|
public boolean hasCullFace()
public int getCullFace()
public void setCullFace(int mode)
mode
- the cull face mode.public void unsetCullFace()
public boolean hasFrontFace()
public int getFrontFace()
public void setFrontFace(int mode)
mode
- the front face mode.public void unsetFrontFace()
public boolean hasPolygonModeFront()
public boolean hasPolygonModeBack()
public int getPolygonModeFront()
public int getPolygonModeBack()
public void setPolygonMode(int mode)
mode
- the polygon mode.public void setPolygonModeFront(int mode)
mode
- the polygon mode.public void setPolygonModeBack(int mode)
mode
- the polygon mode.public void unsetPolygonMode()
public void unsetPolygonModeFront()
public void unsetPolygonModeBack()
public boolean hasPolygonOffset()
public float getPolygonOffsetFactor()
public float getPolygonOffsetUnits()
public void setPolygonOffset(float factor, float units)
factor
- the polygon offset factor.units
- the polygon offset units.public void unsetPolygonOffset()
public boolean hasPolygonOffsetFill()
public boolean getPolygonOffsetFill()
public void setPolygonOffsetFill(boolean fill)
fill
- the polygon offset fill.public void unsetPolygonOffsetFill()
public boolean hasPolygonOffsetLine()
public boolean getPolygonOffsetLine()
public void setPolygonOffsetLine(boolean line)
line
- the polygon offset line.public void unsetPolygonOffsetLine()
public boolean hasPolygonOffsetPoint()
public boolean getPolygonOffsetPoint()
public void setPolygonOffsetPoint(boolean point)
point
- the polygon offset point.public boolean hasPolygonStipple()
public byte[] getPolygonStipple()
public void setPolygonStipple(byte[] mask)
mask
- the polygon stipple.public void unsetPolygonStipple()
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