com.threerings.opengl.material.config
Class TechniqueConfig.Enqueuer

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.material.config.TechniqueConfig.Enqueuer
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
TechniqueConfig.CompoundEnqueuer, TechniqueConfig.EnqueuerWrapper, TechniqueConfig.NormalEnqueuer
Enclosing class:
TechniqueConfig

@EditorTypes(value={TechniqueConfig.NormalEnqueuer.class,TechniqueConfig.CompoundEnqueuer.class,TechniqueConfig.GroupedEnqueuer.class})
public abstract static class TechniqueConfig.Enqueuer
extends DeepObject
implements Exportable

Represents the manner in which we enqueue the technique's batches.


Constructor Summary
TechniqueConfig.Enqueuer()
           
 
Method Summary
abstract  Enqueueable createEnqueueable(GlContext ctx, Scope scope, Geometry geometry, boolean update, RenderQueue.Group group, List<Dependency.Adder> adders, MutableInteger pidx)
          Creates the enqueueable for this enqueuer.
abstract  void getDescriptors(GlContext ctx, List<PassDescriptor> list)
          Adds the descriptors for this enqueuer's passes (as encountered in a depth-first traversal) to the provided list.
abstract  void getUpdateReferences(ConfigReferenceSet refs)
          Adds the enqueuer's update references to the provided set.
abstract  void invalidate()
          Invalidates any cached data.
abstract  boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this enqueuer is supported by the hardware.
abstract  TechniqueConfig.Enqueuer rewrite(MaterialRewriter rewriter)
          Calls the appropriate corresponding rewrite method of MaterialRewriter.
 
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
 

Constructor Detail

TechniqueConfig.Enqueuer

public TechniqueConfig.Enqueuer()
Method Detail

getUpdateReferences

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


isSupported

public abstract boolean isSupported(GlContext ctx,
                                    boolean fallback)
Determines whether this enqueuer is supported by the hardware.


rewrite

public abstract TechniqueConfig.Enqueuer rewrite(MaterialRewriter rewriter)
Calls the appropriate corresponding rewrite method of MaterialRewriter.


getDescriptors

public abstract void getDescriptors(GlContext ctx,
                                    List<PassDescriptor> list)
Adds the descriptors for this enqueuer's passes (as encountered in a depth-first traversal) to the provided list.


createEnqueueable

public abstract Enqueueable createEnqueueable(GlContext ctx,
                                              Scope scope,
                                              Geometry geometry,
                                              boolean update,
                                              RenderQueue.Group group,
                                              List<Dependency.Adder> adders,
                                              MutableInteger pidx)
Creates the enqueueable for this enqueuer.

Parameters:
update - if true, update the geometry before enqueuing it.
adders - a list to populate with adders to run before compositing.
pidx - the index of the current pass in the list returned by getDescriptors(com.threerings.opengl.util.GlContext, java.util.List) (updated by callees).

invalidate

public abstract void invalidate()
Invalidates any cached data.



Copyright © 2011. All Rights Reserved.