Constructor and Description |
---|
LineState()
Constructs line state.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies this OpenGL state.
|
int |
getAttributeBits()
Gets the OpenGL attribute bits for this state.
|
boolean |
getSmooth()
Gets the line smooth.
|
int |
getStippleFactor()
Gets the line stipple factor.
|
short |
getStipplePattern()
Gets the line stipple pattern.
|
float |
getWidth()
Gets the line width.
|
boolean |
hasSmooth()
Determines whether line smooth is set.
|
boolean |
hasStipple()
Determines whether line stipple is set.
|
boolean |
hasWidth()
Determines whether line width is set.
|
void |
setSmooth(boolean smooth)
Sets the line smooth.
|
void |
setStipple(int factor,
short pattern)
Sets the line stipple.
|
void |
setWidth(float width)
Sets the line width.
|
void |
unsetSmooth()
Unsets the line smooth.
|
void |
unsetStipple()
Unsets the line stipple.
|
void |
unsetWidth()
Unsets the line width.
|
public boolean hasSmooth()
public boolean getSmooth()
public void setSmooth(boolean smooth)
smooth
- the smooth.public void unsetSmooth()
public boolean hasStipple()
public int getStippleFactor()
public short getStipplePattern()
public void setStipple(int factor, short pattern)
factor
- the stipple factor.pattern
- the stipple pattern.public void unsetStipple()
public boolean hasWidth()
public float getWidth()
public void setWidth(float width)
width
- the width.public void unsetWidth()
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