com.threerings.opengl.material.config
Class ProjectionConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.material.config.ProjectionConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ProjectionConfig.Orthographic, ProjectionConfig.Perspective

@EditorTypes(value={ProjectionConfig.Perspective.class,ProjectionConfig.Orthographic.class})
public abstract class ProjectionConfig
extends DeepObject
implements Exportable

Contains the configuration of a surface projection.


Nested Class Summary
static class ProjectionConfig.Orthographic
          An orthographic projection.
static class ProjectionConfig.Perspective
          A perspective projection.
 
Field Summary
 ColorStateConfig colorState
          The color state for the projection.
 float height
          The height of the projected image.
 ConfigReference<MaterialConfig> material
          The projection material.
 float width
          The width of the projected image.
 
Constructor Summary
ProjectionConfig()
           
 
Method Summary
 Projection createProjection(GlContext ctx, Scope scope, ArrayList<Updater> updaters)
          Creates a projection object corresponding to this configuration.
 
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

material

@Editable(nullable=true)
public ConfigReference<MaterialConfig> material
The projection material.


colorState

@Editable(nullable=true)
public ColorStateConfig colorState
The color state for the projection.


width

@Editable(min=0.0,
          step=0.01,
          hgroup="d")
public float width
The width of the projected image.


height

@Editable(min=0.0,
          step=0.01,
          hgroup="d")
public float height
The height of the projected image.

Constructor Detail

ProjectionConfig

public ProjectionConfig()
Method Detail

createProjection

public Projection createProjection(GlContext ctx,
                                   Scope scope,
                                   ArrayList<Updater> updaters)
Creates a projection object corresponding to this configuration.



Copyright © 2011. All Rights Reserved.