com.threerings.opengl.renderer
Class Program.Uniform

java.lang.Object
  extended by com.threerings.opengl.renderer.Program.Uniform
Direct Known Subclasses:
Program.FloatUniform, Program.IntegerUniform, Program.Matrix4fUniform, Program.Vector2fUniform, Program.Vector3fUniform, Program.Vector4fUniform
Enclosing class:
Program

public abstract static class Program.Uniform
extends Object

Contains the location and value of a uniform variable.


Field Summary
 boolean dirty
          Set when the uniform value has changed and must be reapplied.
 
Constructor Summary
Program.Uniform(int location)
          Creates a new uniform variable with the specified location.
 
Method Summary
abstract  void apply()
          Applies the value of this uniform.
abstract  Program.Uniform clone(Program.Uniform uniform)
          Clones this uniform, reusing the supplied object if possible.
 int getLocation()
          Returns the location of this uniform.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dirty

public boolean dirty
Set when the uniform value has changed and must be reapplied.

Constructor Detail

Program.Uniform

public Program.Uniform(int location)
Creates a new uniform variable with the specified location.

Method Detail

getLocation

public int getLocation()
Returns the location of this uniform.


apply

public abstract void apply()
Applies the value of this uniform.


clone

public abstract Program.Uniform clone(Program.Uniform uniform)
Clones this uniform, reusing the supplied object if possible.



Copyright © 2011. All Rights Reserved.