com.jme.scene.state.jogl
Class JOGLBlendState

java.lang.Object
  extended by com.jme.scene.state.RenderState
      extended by com.jme.scene.state.BlendState
          extended by com.jme.scene.state.jogl.JOGLBlendState
All Implemented Interfaces:
Savable

public class JOGLBlendState
extends BlendState

JOGLBlendState subclasses the BlendState using the JOGL API to set OpenGL's blending state params.

Version:
$Id: JOGLBlendState.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Mark Powell, Joshua Slack - reworked for StateRecords., Steve Vaughan - JOGL port

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.state.BlendState
BlendState.BlendEquation, BlendState.DestinationFunction, BlendState.SourceFunction, BlendState.TestFunction
 
Nested classes/interfaces inherited from class com.jme.scene.state.RenderState
RenderState.StateType
 
Field Summary
 
Fields inherited from class com.jme.scene.state.BlendState
supportsConstantColor, supportsEq, supportsMinMax, supportsSeparateEq, supportsSeparateFunc, supportsSubtract
 
Fields inherited from class com.jme.scene.state.RenderState
QUICK_COMPARE, RS_BLEND, RS_CLIP, RS_COLORMASK_STATE, RS_CULL, RS_FOG, RS_FRAGMENT_PROGRAM, RS_GLSL_SHADER_OBJECTS, RS_LIGHT, RS_MATERIAL, RS_MAX_STATE, RS_SHADE, RS_STENCIL, RS_TEXTURE, RS_VERTEX_PROGRAM, RS_WIREFRAME, RS_ZBUFFER
 
Constructor Summary
JOGLBlendState(JOGLContextCapabilities caps)
          Constructor instantiates a new JOGLBlendState object with default values.
 
Method Summary
 void apply()
          apply is called to set the blend state.
 BlendStateRecord createStateRecord()
           
 
Methods inherited from class com.jme.scene.state.BlendState
getBlendEquationAlpha, getBlendEquationRGB, getClassTag, getConstantColor, getDestinationFunctionAlpha, getDestinationFunctionRGB, getReference, getSourceFunctionAlpha, getSourceFunctionRGB, getStateType, getTestFunction, getType, isBlendEnabled, isTestEnabled, read, setBlendEnabled, setBlendEquation, setBlendEquationAlpha, setBlendEquationRGB, setConstantColor, setDestinationFunction, setDestinationFunctionAlpha, setDestinationFunctionRGB, setReference, setSourceFunction, setSourceFunctionAlpha, setSourceFunctionRGB, setTestEnabled, setTestFunction, supportsConstantColor, supportsEquation, supportsMinMaxEquations, supportsSeparateEquations, supportsSeparateFunctions, supportsSubtractEquations, write
 
Methods inherited from class com.jme.scene.state.RenderState
extract, isEnabled, needsRefresh, setEnabled, setNeedsRefresh, setQuickCompares
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOGLBlendState

public JOGLBlendState(JOGLContextCapabilities caps)
Constructor instantiates a new JOGLBlendState object with default values.

Method Detail

apply

public void apply()
apply is called to set the blend state. If blending is enabled, the blend function is set up and if alpha testing is enabled the alpha functions are set.

Specified by:
apply in class RenderState
See Also:
RenderState.apply()

createStateRecord

public BlendStateRecord createStateRecord()
Specified by:
createStateRecord in class RenderState