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

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderConfig.Implementation
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ShaderConfig.Derived, ShaderConfig.Original
Enclosing class:
ShaderConfig

@EditorTypes(value={ShaderConfig.Vertex.class,ShaderConfig.Fragment.class,ShaderConfig.Derived.class})
public abstract static class ShaderConfig.Implementation
extends DeepObject
implements Exportable

Contains the actual implementation of the shader.


Constructor Summary
ShaderConfig.Implementation()
           
 
Method Summary
abstract  Shader getShader(GlContext ctx, Scope scope, RenderState[] states, boolean vertexProgramTwoSide)
          Returns the shader corresponding to this configuration.
abstract  ShaderConfig.UniformConfig[] getUniforms(GlContext ctx)
          Returns the array of uniforms for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void getUpdateResources(HashSet<String> paths)
          Adds the implementation's update resources to the provided set.
abstract  void populateDescriptor(GlContext ctx, PassDescriptor desc)
          Populates the relevant portion of the supplied descriptor.
 
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
 

Constructor Detail

ShaderConfig.Implementation

public ShaderConfig.Implementation()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Adds the implementation's update references to the provided set.


getUpdateResources

public void getUpdateResources(HashSet<String> paths)
Adds the implementation's update resources to the provided set.


populateDescriptor

public abstract void populateDescriptor(GlContext ctx,
                                        PassDescriptor desc)
Populates the relevant portion of the supplied descriptor.


getShader

public abstract Shader getShader(GlContext ctx,
                                 Scope scope,
                                 RenderState[] states,
                                 boolean vertexProgramTwoSide)
Returns the shader corresponding to this configuration.


getUniforms

public abstract ShaderConfig.UniformConfig[] getUniforms(GlContext ctx)
Returns the array of uniforms for this configuration.



Copyright © 2011. All Rights Reserved.