com.rugl.gl.facets
Class Blend

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

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

Controls the blending function

Author:
ryanm

Field Summary
 DestinationFactor destFactor
          The blending destination factor, see glBlendFunc
 boolean enabled
          Whether blending is enabled
 SourceFactor srcFactor
          The blending source factor, see glBlendFunc
 
Constructor Summary
Blend()
           
 
Method Summary
 int compareTo(Blend b)
           
 void set(Blend b)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(Blend b)
          Alter the state if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

enabled

public boolean enabled
Whether blending is enabled


srcFactor

public SourceFactor srcFactor
The blending source factor, see glBlendFunc


destFactor

public DestinationFactor destFactor
The blending destination factor, see glBlendFunc

Constructor Detail

Blend

public Blend()
Method Detail

set

public void set(Blend b)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<Blend>

transitionFrom

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

Specified by:
transitionFrom in interface Facet<Blend>
Parameters:
b - The current state.

compareTo

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

toString

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