net.java.joglutils.msg.elements
Class GLBlendElement

java.lang.Object
  extended by net.java.joglutils.msg.elements.Element
      extended by net.java.joglutils.msg.elements.BlendElement
          extended by net.java.joglutils.msg.elements.GLBlendElement

public class GLBlendElement
extends BlendElement

Represents the blending state of the OpenGL fixed-function pipeline and causes side-effects in OpenGL for rendering.


Field Summary
 
Fields inherited from class net.java.joglutils.msg.elements.BlendElement
blendColor, blendEquation, destFunc, enabled, srcFunc
 
Constructor Summary
GLBlendElement()
           
 
Method Summary
static void enable(State defaultState)
           
static GLBlendElement getInstance(State state)
           
 Element newInstance()
          Creates a new instance initialized to the default values for the state element.
 void pop(State state, Element previousTopElement)
          Pops the element, allowing for side effects to occur.
 void setElt(boolean enabled, Vec4f blendColor, int srcFunc, int destFunc, int blendEquation)
          Sets all of the portions of the blending state in this element.
 
Methods inherited from class net.java.joglutils.msg.elements.BlendElement
getBlendColor, getBlendEquation, getDestFunc, getEnabled, getSourceFunc, getStateIndex, isEnabled, push, set
 
Methods inherited from class net.java.joglutils.msg.elements.Element
getDepth, getNext, getNextInStack, setDepth, setNext, setNextInStack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLBlendElement

public GLBlendElement()
Method Detail

newInstance

public Element newInstance()
Description copied from class: Element
Creates a new instance initialized to the default values for the state element. All concrete Element subclasses must implement this operation.

Overrides:
newInstance in class BlendElement

getInstance

public static GLBlendElement getInstance(State state)

enable

public static void enable(State defaultState)

pop

public void pop(State state,
                Element previousTopElement)
Description copied from class: Element
Pops the element, allowing for side effects to occur. Default method does nothing. NOTE that it is not legal to call State.getElement() in the implementation of this method, which is why the previous top element is provided as an argument.

Overrides:
pop in class Element

setElt

public void setElt(boolean enabled,
                   Vec4f blendColor,
                   int srcFunc,
                   int destFunc,
                   int blendEquation)
Description copied from class: BlendElement
Sets all of the portions of the blending state in this element.

Overrides:
setElt in class BlendElement