com.threerings.opengl.renderer
Class Program.Vector3fUniform

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

public static class Program.Vector3fUniform
extends Program.Uniform

A uniform containing a three-element vector.


Field Summary
 Vector3f value
          The vector value.
 
Fields inherited from class com.threerings.opengl.renderer.Program.Uniform
dirty
 
Constructor Summary
Program.Vector3fUniform(int location)
          Creates a new vector uniform with the specified location.
Program.Vector3fUniform(int location, Vector3f value)
          Creates a new vector 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 Vector3f value
The vector value.

Constructor Detail

Program.Vector3fUniform

public Program.Vector3fUniform(int location)
Creates a new vector uniform with the specified location.


Program.Vector3fUniform

public Program.Vector3fUniform(int location,
                               Vector3f value)
Creates a new vector 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.