public class VertexAttribute
extends java.lang.Object
Constructor and Description |
---|
VertexAttribute(java.lang.String name)
Construct with a name.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
void |
setColor(int color)
Set the vertex attribute to the given color value.
|
void |
setColor(int r,
int g,
int b,
int a)
Set the vertex attribute to the given color value.
|
void |
setFloat(float val)
Set the vertex attribute to the given float.
|
void |
setInt(int val)
Set the vertex attribute to the given int.
|
void |
setName(java.lang.String name)
Set the name of the vertex attribute.
|
void |
setVec2(float x,
float y)
Set the vertex attribute to the given 2D vector.
|
void |
setVec3(float x,
float y,
float z)
Set the vertex attribute to the given 3D vector.
|
public VertexAttribute(java.lang.String name)
public void setName(java.lang.String name)
public void setFloat(float val)
public void setInt(int val)
public void setVec2(float x, float y)
public void setVec3(float x, float y, float z)
public void setColor(int color)
public void setColor(int r, int g, int b, int a)
public void finalize()
finalize
in class java.lang.Object