com.threerings.opengl.renderer
Class Program.Matrix4fUniform

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

public static class Program.Matrix4fUniform
extends Program.Uniform

A uniform containing a 4x4 matrix.


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

Constructor Detail

Program.Matrix4fUniform

public Program.Matrix4fUniform(int location)
Creates a new matrix uniform with the specified location.


Program.Matrix4fUniform

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