com.threerings.opengl.material.config
Class PassConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.material.config.PassConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class PassConfig
extends DeepObject
implements Exportable

Represents a single material pass.


Field Summary
 AlphaStateConfig alphaState
          The alpha state to use in this pass.
 ColorMaskStateConfig colorMaskState
          The color mask state to use in this pass.
 ColorStateConfig colorStateOverride
          The color state to use in this pass (overriding the default).
 CullStateConfig cullState
          The cull state to use in this pass.
 DepthStateConfig depthState
          The depth state to use in this pass.
 ExpressionBinding[] dynamicBindings
          The dynamic expression bindings for this pass.
 FogStateConfig fogStateOverride
          The fog state to use in this pass (overriding the default).
 boolean ignoreVertexColors
          Whether or not to ignore the vertex colors.
 LightStateConfig lightStateOverride
          The light state to use in this pass (overriding the default).
 LineStateConfig lineState
          The line state.
 MaterialStateConfig materialState
          The material state to use in this pass.
 PointStateConfig pointState
          The point state.
 PolygonStateConfig polygonState
          The polygon state to use in this pass.
 ShaderStateConfig shaderState
          The shader state to use in this pass.
 ExpressionBinding[] staticBindings
          The static expression bindings for this pass.
 StencilStateConfig stencilState
          The stencil state to use in this pass.
 TextureStateConfig textureState
          The texture state to use in this pass.
 
Constructor Summary
PassConfig()
           
 
Method Summary
 PassDescriptor createDescriptor(GlContext ctx)
          Returns a descriptor for this pass that can be used to configure a geometry instance.
 RenderState[] createStates(GlContext ctx, Scope scope, List<Dependency.Adder> adders, List<Updater> updaters)
          Creates the set of states for this pass.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the technique's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this pass is supported.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

alphaState

@Editable
public AlphaStateConfig alphaState
The alpha state to use in this pass.


colorStateOverride

@Editable(nullable=true)
public ColorStateConfig colorStateOverride
The color state to use in this pass (overriding the default).


colorMaskState

@Editable
public ColorMaskStateConfig colorMaskState
The color mask state to use in this pass.


cullState

@Editable
public CullStateConfig cullState
The cull state to use in this pass.


depthState

@Editable
public DepthStateConfig depthState
The depth state to use in this pass.


fogStateOverride

@Editable(nullable=true)
public FogStateConfig fogStateOverride
The fog state to use in this pass (overriding the default).


lightStateOverride

@Editable(nullable=true)
public LightStateConfig lightStateOverride
The light state to use in this pass (overriding the default).


lineState

@Editable(nullable=true)
public LineStateConfig lineState
The line state.


materialState

@Editable(nullable=true)
public MaterialStateConfig materialState
The material state to use in this pass.


pointState

@Editable(nullable=true)
public PointStateConfig pointState
The point state.


polygonState

@Editable
public PolygonStateConfig polygonState
The polygon state to use in this pass.


shaderState

@Editable
public ShaderStateConfig shaderState
The shader state to use in this pass.


stencilState

@Editable
public StencilStateConfig stencilState
The stencil state to use in this pass.


textureState

@Editable
public TextureStateConfig textureState
The texture state to use in this pass.


staticBindings

@Editable
public ExpressionBinding[] staticBindings
The static expression bindings for this pass.


dynamicBindings

@Editable
public ExpressionBinding[] dynamicBindings
The dynamic expression bindings for this pass.


ignoreVertexColors

@Editable
public boolean ignoreVertexColors
Whether or not to ignore the vertex colors.

Constructor Detail

PassConfig

public PassConfig()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the technique's update references to the provided set.


isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Determines whether this pass is supported.


createDescriptor

public PassDescriptor createDescriptor(GlContext ctx)
Returns a descriptor for this pass that can be used to configure a geometry instance.


createStates

public RenderState[] createStates(GlContext ctx,
                                  Scope scope,
                                  List<Dependency.Adder> adders,
                                  List<Updater> updaters)
Creates the set of states for this pass.

Parameters:
adders - holds adders to run on composite.
updaters - holds updaters to run on enqueue.

invalidate

public void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.