com.threerings.opengl.renderer
Class Program.FloatUniform

java.lang.Object
  extended by com.threerings.opengl.renderer.Program.Uniform
      extended by com.threerings.opengl.renderer.Program.FloatUniform
Enclosing class:
Program

public static class Program.FloatUniform
extends Program.Uniform

A uniform containing a float.


Field Summary
 float value
          The float value.
 
Fields inherited from class com.threerings.opengl.renderer.Program.Uniform
dirty
 
Constructor Summary
Program.FloatUniform(int location)
          Creates a new float uniform with the specified location.
Program.FloatUniform(int location, float value)
          Creates a new float uniform with the specified location and value.
 
Method Summary
 void apply()
          Applies the value of this uniform.
 Program.Uniform clone(Program.Uniform uniform)
          Clones this uniform, reusing the supplied object if possible.
 boolean equals(Object other)
           
 
Methods inherited from class com.threerings.opengl.renderer.Program.Uniform
getLocation
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public float value
The float value.

Constructor Detail

Program.FloatUniform

public Program.FloatUniform(int location)
Creates a new float uniform with the specified location.


Program.FloatUniform

public Program.FloatUniform(int location,
                            float value)
Creates a new float uniform with the specified location and value.

Method Detail

apply

public void apply()
Description copied from class: Program.Uniform
Applies the value of this uniform.

Specified by:
apply in class Program.Uniform

clone

public Program.Uniform clone(Program.Uniform uniform)
Description copied from class: Program.Uniform
Clones this uniform, reusing the supplied object if possible.

Specified by:
clone in class Program.Uniform

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.