Constructor and Description |
---|
PointState()
Constructs point state.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies this OpenGL state.
|
int |
getAttributeBits()
Gets the OpenGL attribute bits for this state.
|
float |
getSize()
Gets the point size.
|
boolean |
getSmooth()
Gets the point smooth.
|
boolean |
hasSize()
Determines whether point size is set.
|
boolean |
hasSmooth()
Determines whether point smooth is set.
|
void |
setSize(float size)
Sets the point size.
|
void |
setSmooth(boolean smooth)
Sets the point smooth.
|
void |
unsetSize()
Unsets the point size.
|
void |
unsetSmooth()
Unsets the point smooth.
|
public boolean hasSmooth()
public boolean getSmooth()
public void setSmooth(boolean smooth)
smooth
- the smooth.public void unsetSmooth()
public boolean hasSize()
public float getSize()
public void setSize(float size)
size
- the size.public void unsetSize()
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