com.threerings.opengl.renderer
Class Program.Vector4fUniform

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

public static class Program.Vector4fUniform
extends Program.Uniform

A uniform containing a four-element vector.


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

Constructor Detail

Program.Vector4fUniform

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


Program.Vector4fUniform

public Program.Vector4fUniform(int location,
                               Vector4f 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.