com.threerings.opengl.renderer.config
Class ShaderConfig.UniformConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderConfig.UniformConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ShaderConfig.ArrayRefUniformConfig, ShaderConfig.ExpressionUniformConfig, ShaderConfig.SimpleUniformConfig
Enclosing class:
ShaderConfig

@EditorTypes(value={ShaderConfig.BooleanUniformConfig.class,ShaderConfig.ColorUniformConfig.class,ShaderConfig.FloatUniformConfig.class,ShaderConfig.IntegerUniformConfig.class,ShaderConfig.PolarUniformConfig.class,ShaderConfig.TransformUniformConfig.class,ShaderConfig.BooleanExprUniformConfig.class,ShaderConfig.ColorExprUniformConfig.class,ShaderConfig.FloatExprUniformConfig.class,ShaderConfig.IntegerExprUniformConfig.class,ShaderConfig.TransformExprUniformConfig.class,ShaderConfig.MatrixArrayRefUniformConfig.class})
public abstract static class ShaderConfig.UniformConfig
extends DeepObject
implements Exportable

Represents the configuration of one or more shader uniforms.


Field Summary
 String name
          The name of the uniform.
 
Constructor Summary
ShaderConfig.UniformConfig()
           
 
Method Summary
abstract  void createUniforms(Scope scope, Program program, List<Program.Uniform> uniforms, List<Updater> updaters)
          Creates the uniform objects for this config and adds them to the provided list.
 
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

name

@Editable(hgroup="p")
public String name
The name of the uniform.

Constructor Detail

ShaderConfig.UniformConfig

public ShaderConfig.UniformConfig()
Method Detail

createUniforms

public abstract void createUniforms(Scope scope,
                                    Program program,
                                    List<Program.Uniform> uniforms,
                                    List<Updater> updaters)
Creates the uniform objects for this config and adds them to the provided list.



Copyright © 2011. All Rights Reserved.