|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.video.model.VertexColoration
public class VertexColoration
Coloration implementation that keeps track of individual Material objects
for each vertex of a Model.
API Stability: Stable.
Constructor Summary | |
---|---|
VertexColoration()
Constructs a VertexColoration with no Materials. |
|
VertexColoration(Material[] materials)
Constructs a VertexColoration using the given Material array. |
Method Summary | |
---|---|
void |
draw(Context opt,
int number,
float[] vertex)
Causes the Coloration to be drawn. |
Material[] |
getMaterials()
Provides the Material array. |
void |
load(Hierarchy h)
Configures this Coloration from the given Hierarchy. |
void |
setMaterials(Material[] materials)
Sets the Material array for this coloration. |
void |
store(Hierarchy h)
Stores this Coloration to the given Hierarchy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VertexColoration()
public VertexColoration(Material[] materials)
materials
- the Material array.Method Detail |
---|
public void setMaterials(Material[] materials)
materials
- the Material array.public Material[] getMaterials()
public void draw(Context opt, int number, float[] vertex)
Coloration
draw
in interface Coloration
opt
- the rendering options that are being used. Implementatons
of this interface should pay attention to the color related flags.number
- the current vertex number.vertex
- the current vertex position (x, y, and z coordinates).public void load(Hierarchy h)
Coloration
load
in interface Coloration
h
- the Hierarchy to configure this Coloration from.public void store(Hierarchy h)
Coloration
store
in interface Coloration
h
- the Hierarchy to store this Coloration to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |