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

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.NormalEnqueuer
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
TechniqueConfig

public static class TechniqueConfig.NormalEnqueuer
extends TechniqueConfig.Enqueuer

Enqueues a single batch at a configurable priority.


Field Summary
 PassConfig[] passes
          The passes to render.
 int priority
          The priority at which the batch is enqueued.
 String queue
          The queue into which we render.
 
Constructor Summary
TechniqueConfig.NormalEnqueuer()
           
 
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
 

Field Detail

queue

@Editable(editor="config",
          mode="render_queue",
          nullable=true,
          hgroup="q")
public String queue
The queue into which we render.


priority

@Editable(hgroup="q")
public int priority
The priority at which the batch is enqueued.


passes

@Editable
public PassConfig[] passes
The passes to render.

Constructor Detail

TechniqueConfig.NormalEnqueuer

public TechniqueConfig.NormalEnqueuer()
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.