com.threerings.opengl.gui.config
Class ComponentBillboardConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.ModelConfig.Implementation
          extended by com.threerings.opengl.gui.config.ComponentBillboardConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class ComponentBillboardConfig
extends ModelConfig.Implementation

A component billboard model implementation.


Field Summary
 AlphaStateConfig alphaState
          The alpha state to use in this pass.
 String bundle
          The message bundle to use for translations (or the empty string for the default).
 DepthStateConfig depthState
          The depth state to use.
 InfluenceFlagConfig influences
          The influences allowed to affect this model.
 int priority
          The priority at which the batch is enqueued.
 String queue
          The queue into which we render.
 ComponentConfig root
          The root component.
 boolean rotationEnabled
          Whether or not rotation is enabled.
 ArticulatedConfig.BillboardRotationX rotationX
          The x rotation mode.
 ArticulatedConfig.BillboardRotationY rotationY
          The y rotation mode.
 float scale
          A uniform scale to apply.
 
Constructor Summary
ComponentBillboardConfig()
          Default constructor.
 
Method Summary
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
getConfigManager, getOriginal, getParticleGeometry, getParticleMaterial, getUpdateReferences, invalidate, updateFromSource
 
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

bundle

@Editable(hgroup="b")
public String bundle
The message bundle to use for translations (or the empty string for the default).


scale

@Editable(min=0.0,
          step=0.0010,
          hgroup="b")
public float scale
A uniform scale to apply.


root

@Editable
public ComponentConfig root
The root component.


rotationEnabled

@Editable
public boolean rotationEnabled
Whether or not rotation is enabled.


rotationX

@Editable(hgroup="r")
public ArticulatedConfig.BillboardRotationX rotationX
The x rotation mode.


rotationY

@Editable(hgroup="r")
public ArticulatedConfig.BillboardRotationY rotationY
The y rotation mode.


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.


alphaState

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


depthState

@Editable
public DepthStateConfig depthState
The depth state to use.


influences

@Editable
public InfluenceFlagConfig influences
The influences allowed to affect this model.

Constructor Detail

ComponentBillboardConfig

public ComponentBillboardConfig()
Default constructor.

Method Detail

getModelImplementation

public Model.Implementation getModelImplementation(GlContext ctx,
                                                   Scope scope,
                                                   Model.Implementation impl)
Description copied from class: ModelConfig.Implementation
Creates or updates a model implementation for this configuration.

Specified by:
getModelImplementation in class ModelConfig.Implementation
scope - the model's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.


Copyright © 2011. All Rights Reserved.