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

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

public static class ShaderConfig.Derived
extends ShaderConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<ShaderConfig> shader
          The shader reference.
 
Constructor Summary
ShaderConfig.Derived()
           
 
Method Summary
 Shader getShader(GlContext ctx, Scope scope, RenderState[] states, boolean vertexProgramTwoSide)
          Returns the shader corresponding to this configuration.
 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 populateDescriptor(GlContext ctx, PassDescriptor desc)
          Populates the relevant portion of the supplied descriptor.
 
Methods inherited from class com.threerings.opengl.renderer.config.ShaderConfig.Implementation
getUpdateResources
 
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

shader

@Editable(nullable=true)
public ConfigReference<ShaderConfig> shader
The shader reference.

Constructor Detail

ShaderConfig.Derived

public ShaderConfig.Derived()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ShaderConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class ShaderConfig.Implementation

populateDescriptor

public void populateDescriptor(GlContext ctx,
                               PassDescriptor desc)
Description copied from class: ShaderConfig.Implementation
Populates the relevant portion of the supplied descriptor.

Specified by:
populateDescriptor in class ShaderConfig.Implementation

getShader

public Shader getShader(GlContext ctx,
                        Scope scope,
                        RenderState[] states,
                        boolean vertexProgramTwoSide)
Description copied from class: ShaderConfig.Implementation
Returns the shader corresponding to this configuration.

Specified by:
getShader in class ShaderConfig.Implementation

getUniforms

public ShaderConfig.UniformConfig[] getUniforms(GlContext ctx)
Description copied from class: ShaderConfig.Implementation
Returns the array of uniforms for this configuration.

Specified by:
getUniforms in class ShaderConfig.Implementation


Copyright © 2011. All Rights Reserved.