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

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

public static class TechniqueConfig.EnqueuerWrapper
extends TechniqueConfig.Enqueuer

Wraps another enqueuer.


Constructor Summary
TechniqueConfig.EnqueuerWrapper(TechniqueConfig.Enqueuer wrapped)
          Creates a wrapped enqueuer.
 
Method Summary
 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.
 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.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the enqueuer's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 boolean isSupported(GlContext ctx, boolean fallback)
          Determines whether this enqueuer is supported by the hardware.
 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.EnqueuerWrapper

public TechniqueConfig.EnqueuerWrapper(TechniqueConfig.Enqueuer wrapped)
Creates a wrapped enqueuer.

Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: TechniqueConfig.Enqueuer
Adds the enqueuer's update references to the provided set.

Specified by:
getUpdateReferences in class TechniqueConfig.Enqueuer

isSupported

public boolean isSupported(GlContext ctx,
                           boolean fallback)
Description copied from class: TechniqueConfig.Enqueuer
Determines whether this enqueuer is supported by the hardware.

Specified by:
isSupported in class TechniqueConfig.Enqueuer

rewrite

public TechniqueConfig.Enqueuer rewrite(MaterialRewriter rewriter)
Description copied from class: TechniqueConfig.Enqueuer
Calls the appropriate corresponding rewrite method of MaterialRewriter.

Specified by:
rewrite in class TechniqueConfig.Enqueuer

getDescriptors

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

Specified by:
getDescriptors in class TechniqueConfig.Enqueuer

createEnqueueable

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

Specified by:
createEnqueueable in class TechniqueConfig.Enqueuer
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 TechniqueConfig.Enqueuer.getDescriptors(com.threerings.opengl.util.GlContext, java.util.List) (updated by callees).

invalidate

public void invalidate()
Description copied from class: TechniqueConfig.Enqueuer
Invalidates any cached data.

Specified by:
invalidate in class TechniqueConfig.Enqueuer


Copyright © 2011. All Rights Reserved.