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

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderConfig.UniformConfig
          extended by com.threerings.opengl.renderer.config.ShaderConfig.ArrayRefUniformConfig<Matrix4f>
              extended by com.threerings.opengl.renderer.config.ShaderConfig.MatrixArrayRefUniformConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ShaderConfig

public static class ShaderConfig.MatrixArrayRefUniformConfig
extends ShaderConfig.ArrayRefUniformConfig<Matrix4f>

References an array of matrices.


Field Summary
 
Fields inherited from class com.threerings.opengl.renderer.config.ShaderConfig.UniformConfig
name
 
Constructor Summary
ShaderConfig.MatrixArrayRefUniformConfig()
           
 
Method Summary
protected  Program.Uniform createUniform(int location, Matrix4f value)
          Creates a uniform object from this configuration.
protected  Class<? extends Matrix4f[]> getArrayClass()
          Returns the array class that we're expecting.
 
Methods inherited from class com.threerings.opengl.renderer.config.ShaderConfig.ArrayRefUniformConfig
createUniforms
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShaderConfig.MatrixArrayRefUniformConfig

public ShaderConfig.MatrixArrayRefUniformConfig()
Method Detail

getArrayClass

protected Class<? extends Matrix4f[]> getArrayClass()
Description copied from class: ShaderConfig.ArrayRefUniformConfig
Returns the array class that we're expecting.

Specified by:
getArrayClass in class ShaderConfig.ArrayRefUniformConfig<Matrix4f>

createUniform

protected Program.Uniform createUniform(int location,
                                        Matrix4f value)
Description copied from class: ShaderConfig.ArrayRefUniformConfig
Creates a uniform object from this configuration.

Specified by:
createUniform in class ShaderConfig.ArrayRefUniformConfig<Matrix4f>
Parameters:
location - the location of the uniform.
value - a reference to the value of the uniform.