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

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderConfig.Definition
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ShaderConfig.BooleanDefinition, ShaderConfig.ColorDefinition, ShaderConfig.FloatDefinition, ShaderConfig.FogBlendSnippet, ShaderConfig.FogParamSnippet, ShaderConfig.FragmentLightingSnippet, ShaderConfig.IntegerDefinition, ShaderConfig.StringDefinition, ShaderConfig.TexCoordSnippet, ShaderConfig.TransformDefinition, ShaderConfig.VertexLightingSnippet
Enclosing class:
ShaderConfig

@EditorTypes(value={ShaderConfig.BooleanDefinition.class,ShaderConfig.ColorDefinition.class,ShaderConfig.FloatDefinition.class,ShaderConfig.IntegerDefinition.class,ShaderConfig.StringDefinition.class,ShaderConfig.TransformDefinition.class,ShaderConfig.FogParamSnippet.class,ShaderConfig.FogBlendSnippet.class,ShaderConfig.TexCoordSnippet.class,ShaderConfig.VertexLightingSnippet.class,ShaderConfig.FragmentLightingSnippet.class})
public abstract static class ShaderConfig.Definition
extends DeepObject
implements Exportable

Represents a preprocessor definition.


Field Summary
 String name
          The name of the definition.
 
Constructor Summary
ShaderConfig.Definition()
           
 
Method Summary
abstract  void getDefinitions(Scope scope, RenderState[] states, boolean vertexProgramTwoSide, List<String> defs)
          Retrieves the definitions 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 definition.

Constructor Detail

ShaderConfig.Definition

public ShaderConfig.Definition()
Method Detail

getDefinitions

public abstract void getDefinitions(Scope scope,
                                    RenderState[] states,
                                    boolean vertexProgramTwoSide,
                                    List<String> defs)
Retrieves the definitions for this config and adds them to the provided list.



Copyright © 2011. All Rights Reserved.