com.threerings.opengl.effect.config
Class ParticleSystemConfig.Meshes

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.geometry.config.GeometryConfig
          extended by com.threerings.opengl.effect.config.ParticleSystemConfig.ParticleGeometryConfig
              extended by com.threerings.opengl.effect.config.ParticleSystemConfig.Meshes
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ParticleSystemConfig

public static class ParticleSystemConfig.Meshes
extends ParticleSystemConfig.ParticleGeometryConfig

Renders particles as mesh instances.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.geometry.config.GeometryConfig
GeometryConfig.ArrayStored, GeometryConfig.AttributeArrayConfig, GeometryConfig.IndexedStored, GeometryConfig.Mode, GeometryConfig.SkinnedIndexedStored, GeometryConfig.Stored
 
Field Summary
 ConfigReference<ModelConfig> model
          The model containing the mesh.
 
Constructor Summary
ParticleSystemConfig.Meshes()
           
 
Method Summary
 Geometry createGeometry(GlContext ctx, Scope scope, DeformerConfig deformer, PassDescriptor[] passes)
          Creates an instance of the geometry described by this config.
 float getRadius(GlContext ctx)
          Returns the radius of the geometry (used to expand the bounds).
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the geometry's update references to the provided set.
 
Methods inherited from class com.threerings.opengl.effect.config.ParticleSystemConfig.ParticleGeometryConfig
getBounds, getMoveTrailsWithParticles, getSegments
 
Methods inherited from class com.threerings.opengl.geometry.config.GeometryConfig
createQuad, getQuad, merge
 
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

model

@Editable(mode="compact",
          nullable=true)
public ConfigReference<ModelConfig> model
The model containing the mesh.

Constructor Detail

ParticleSystemConfig.Meshes

public ParticleSystemConfig.Meshes()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ParticleSystemConfig.ParticleGeometryConfig
Adds the geometry's update references to the provided set.

Overrides:
getUpdateReferences in class ParticleSystemConfig.ParticleGeometryConfig

getRadius

public float getRadius(GlContext ctx)
Description copied from class: ParticleSystemConfig.ParticleGeometryConfig
Returns the radius of the geometry (used to expand the bounds).

Overrides:
getRadius in class ParticleSystemConfig.ParticleGeometryConfig

createGeometry

public Geometry createGeometry(GlContext ctx,
                               Scope scope,
                               DeformerConfig deformer,
                               PassDescriptor[] passes)
Description copied from class: GeometryConfig
Creates an instance of the geometry described by this config.

Specified by:
createGeometry in class GeometryConfig


Copyright © 2011. All Rights Reserved.