|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.opengl.GLUniformData
public class GLUniformData
Constructor Summary | |
---|---|
GLUniformData(String name,
float val)
float atom Number of objects is 1 |
|
GLUniformData(String name,
int val)
int atom Number of objects is 1 |
|
GLUniformData(String name,
int components,
FloatBuffer data)
Multiple FloatBuffer Vector Number of objects is calculated by data.limit()/components |
|
GLUniformData(String name,
int components,
IntBuffer data)
Multiple IntBuffer Vector Number of objects is calculated by data.limit()/components |
|
GLUniformData(String name,
int rows,
int columns,
FloatBuffer data)
Multiple FloatBuffer Matrix Number of objects is calculated by data.limit()/(rows*columns) |
Method Summary | |
---|---|
int |
columns()
|
int |
components()
|
int |
count()
|
FloatBuffer |
floatBufferValue()
|
float |
floatValue()
|
Buffer |
getBuffer()
|
int |
getLocation()
|
String |
getName()
|
Object |
getObject()
|
IntBuffer |
intBufferValue()
|
int |
intValue()
|
boolean |
isBuffer()
|
boolean |
isMatrix()
|
int |
rows()
|
GLUniformData |
setData(float data)
|
GLUniformData |
setData(FloatBuffer data)
|
GLUniformData |
setData(int data)
|
GLUniformData |
setData(IntBuffer data)
|
GLUniformData |
setLocation(int location)
Sets the determined location of the shader uniform. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GLUniformData(String name, int val)
public GLUniformData(String name, float val)
public GLUniformData(String name, int components, IntBuffer data)
components
- number of elements of one object, ie 4 for GL_FLOAT_VEC4,public GLUniformData(String name, int components, FloatBuffer data)
components
- number of elements of one object, ie 4 for GL_FLOAT_VEC4,public GLUniformData(String name, int rows, int columns, FloatBuffer data)
rows
- the matrix rowscolumn
- the matrix columnMethod Detail |
---|
public GLUniformData setData(int data)
public GLUniformData setData(float data)
public GLUniformData setData(IntBuffer data)
public GLUniformData setData(FloatBuffer data)
public int intValue()
public float floatValue()
public IntBuffer intBufferValue()
public FloatBuffer floatBufferValue()
public String toString()
toString
in class Object
public String getName()
public int getLocation()
public GLUniformData setLocation(int location)
public Object getObject()
public Buffer getBuffer()
public boolean isBuffer()
public boolean isMatrix()
public int count()
public int components()
public int rows()
public int columns()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |