Controlling appearance
PolygonAttributes class methods
- Methods on PolygonAttributes select the way
polygons are rendered
- By default, back faces are culled, polygons are filled,
and the offset is 0.0
Method |
PolygonAttributes( ) |
void setCullFace( int cullface ) |
void setPolygonMode( int mode ) |
void setPolygonOffset( float offset ) |
- Face culling modes include:
CULL_NONE,
CULL_BACK (default), and
CULL_FRONT
- Polygon modes include:
POLYGON_POINT,
POLYGON_LINE, and
POLYGON_FILL (default)