com.rugl.gl.facets
Class PolygonOffset

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

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

Controls polygon offset

Author:
ryanm

Field Summary
 float factor
          A scale factor that is used to create a variable depth offset for each polygon.
 boolean fill
          Enables GL11.GL_POLYGON_OFFSET_FILL
 boolean line
          Enables GL11.GL_POLYGON_OFFSET_LINE
 boolean point
          Enables GL11.GL_POLYGON_OFFSET_POINT
 float units
          Multiplied by an implementation-specific value to create a constant depth offset.
 
Constructor Summary
PolygonOffset()
           
 
Method Summary
 int compareTo(PolygonOffset po)
           
 void set(PolygonOffset po)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(PolygonOffset po)
          Alter the state if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

line

public boolean line
Enables GL11.GL_POLYGON_OFFSET_LINE


fill

public boolean fill
Enables GL11.GL_POLYGON_OFFSET_FILL


point

public boolean point
Enables GL11.GL_POLYGON_OFFSET_POINT


factor

public float factor
A scale factor that is used to create a variable depth offset for each polygon.


units

public float units
Multiplied by an implementation-specific value to create a constant depth offset.

Constructor Detail

PolygonOffset

public PolygonOffset()
Method Detail

set

public void set(PolygonOffset po)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<PolygonOffset>

transitionFrom

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

Specified by:
transitionFrom in interface Facet<PolygonOffset>
Parameters:
po - The current state.

compareTo

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

toString

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