com.threerings.opengl.material.config
Class MaterialRewriter

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.material.config.MaterialRewriter
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
MaterialRewriter.DepthOnly, MaterialRewriter.Projection, MaterialRewriter.Translucent

@EditorTypes(value={MaterialRewriter.DepthOnly.class,MaterialRewriter.Translucent.class,MaterialRewriter.Projection.class})
public abstract class MaterialRewriter
extends DeepObject
implements Exportable

Used to transform material techniques.


Nested Class Summary
static class MaterialRewriter.DepthOnly
          Creates depth-only versions of input techniques (for shadow maps, e.g.)
static class MaterialRewriter.Projection
          Creates projected versions of input techniques.
static class MaterialRewriter.Translucent
          Creates translucent versions of input techniques.
 
Constructor Summary
MaterialRewriter()
           
 
Method Summary
protected  AlphaStateConfig rewrite(AlphaStateConfig alphaState)
          Rewrites the specified state.
protected  DepthStateConfig rewrite(DepthStateConfig depthState)
          Rewrites the specified state.
protected  PassConfig rewrite(PassConfig pass)
          Rewrites the specified pass.
protected  TechniqueConfig.Enqueuer rewrite(TechniqueConfig.CompoundEnqueuer enqueuer)
          Rewrites the specified enqueuer.
protected  TechniqueConfig.Enqueuer rewrite(TechniqueConfig.GroupedEnqueuer enqueuer)
          Rewrites the specified enqueuer.
protected  TechniqueConfig.Enqueuer rewrite(TechniqueConfig.NormalEnqueuer enqueuer)
          Rewrites the specified enqueuer.
 TechniqueConfig rewrite(TechniqueConfig technique)
          Returns a new technique that is the rewritten version of the technique supplied.
protected  TextureStateConfig rewrite(TextureStateConfig textureState)
          Rewrites the specified state.
protected  TextureUnitConfig rewrite(TextureUnitConfig textureUnit)
          Rewrites the specified texture unit.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaterialRewriter

public MaterialRewriter()
Method Detail

rewrite

public TechniqueConfig rewrite(TechniqueConfig technique)
Returns a new technique that is the rewritten version of the technique supplied.


rewrite

protected TechniqueConfig.Enqueuer rewrite(TechniqueConfig.NormalEnqueuer enqueuer)
Rewrites the specified enqueuer.


rewrite

protected TechniqueConfig.Enqueuer rewrite(TechniqueConfig.CompoundEnqueuer enqueuer)
Rewrites the specified enqueuer.


rewrite

protected TechniqueConfig.Enqueuer rewrite(TechniqueConfig.GroupedEnqueuer enqueuer)
Rewrites the specified enqueuer.


rewrite

protected PassConfig rewrite(PassConfig pass)
Rewrites the specified pass.


rewrite

protected AlphaStateConfig rewrite(AlphaStateConfig alphaState)
Rewrites the specified state.


rewrite

protected DepthStateConfig rewrite(DepthStateConfig depthState)
Rewrites the specified state.


rewrite

protected TextureStateConfig rewrite(TextureStateConfig textureState)
Rewrites the specified state.


rewrite

protected TextureUnitConfig rewrite(TextureUnitConfig textureUnit)
Rewrites the specified texture unit.