com.rugl.gl.facets
Class PolygonMode

java.lang.Object
  extended by com.rugl.gl.facets.PolygonMode
All Implemented Interfaces:
Facet<PolygonMode>, java.lang.Comparable<PolygonMode>

public class PolygonMode
extends java.lang.Object
implements Facet<PolygonMode>

Controls polygon rasterisation

Author:
ryanm

Field Summary
 RasterMode back
          Mode for front-facing polygons
 RasterMode front
          Mode for back-facing polygons
 
Constructor Summary
PolygonMode()
           
 
Method Summary
 int compareTo(PolygonMode o)
           
 void set(PolygonMode facet)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(PolygonMode facet)
          Alter the state if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

front

public RasterMode front
Mode for back-facing polygons


back

public RasterMode back
Mode for front-facing polygons

Constructor Detail

PolygonMode

public PolygonMode()
Method Detail

set

public void set(PolygonMode facet)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<PolygonMode>

transitionFrom

public void transitionFrom(PolygonMode facet)
Description copied from interface: Facet
Alter the state if necessary

Specified by:
transitionFrom in interface Facet<PolygonMode>
Parameters:
facet - The current state.

compareTo

public int compareTo(PolygonMode o)
Specified by:
compareTo in interface java.lang.Comparable<PolygonMode>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object