|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscenic.ScenePrimitives.Attribute
public static class ScenePrimitives.Attribute
This class contains attribute information. The size of the attribute is not the size of the array, but the number of elements that are used for one vertex. So a RGBA color attribute would have size 4 and texture coordinate or vertex position size 2. The array data must be either a byte array or a float array. Currently color attribute accepts only byte arrays and position and texture coordinate attributes accept only float arrays. This will propably change in the future to allow a more flexible scheme.
| Constructor Summary | |
|---|---|
ScenePrimitives.Attribute(int size,
java.lang.Object data)
Creates an attribute with the given size and array data. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Gets the data of the attribute. |
int |
getSize()
Gets the size of the attribute. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScenePrimitives.Attribute(int size,
java.lang.Object data)
size - the size of the attribute.data - the array data.| Method Detail |
|---|
public int getSize()
public java.lang.Object getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||