com.threerings.opengl.renderer
Class Program.IntegerUniform

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

public static class Program.IntegerUniform
extends Program.Uniform

A uniform containing an integer.


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

Constructor Detail

Program.IntegerUniform

public Program.IntegerUniform(int location)
Creates a new integer uniform with the specified location.


Program.IntegerUniform

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