|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.geometry.SimpleGeometryDataContainer
org.jagatoo.geometry.GeometryDataContainer
public class GeometryDataContainer
This is the advanced (regular) version of a geometry data container. It additionally holds (or can hold) normals, colors, texture-coordinates and vertex-attributes.
| Field Summary | |
|---|---|
protected GeomNioFloatData |
colors
|
static int |
COLORS
|
protected int |
colorSize
|
protected long |
colorsOffset
|
protected GeomNioFloatData |
normals
|
static int |
NORMALS
|
protected long |
normalsOffset
|
protected GeomNioFloatData[] |
texCoords
|
protected long[] |
texCoordsOffsets
|
static int |
TEXTURE_COORDINATES
|
static int |
VERTEX_ATTRIBUTES
|
protected GeomNioFloatData[] |
vertexAttribs
|
protected long[] |
vertexAttribsOffsets
|
| Fields inherited from class org.jagatoo.geometry.SimpleGeometryDataContainer |
|---|
BY_REFERENCE, COORDINATES, coords, coordsOffset, indexData, INTERLEAVED, interleavedData, isInterleaved, maxVertices, numIndices, numVertices, reversed |
| Constructor Summary | |
|---|---|
protected |
GeometryDataContainer(GeometryArrayType type,
boolean hasIndex,
int coordsSize,
int vertexCount,
int[] stripCounts,
int indexCount)
|
|
GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount)
|
|
GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount,
int indexCount)
|
|
GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount,
int[] stripCounts)
|
|
GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount,
int[] stripCounts,
int indexCount)
|
| Method Summary | ||
|---|---|---|
void |
addData(float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
Super fast method add a bunch of data right into the data elements. |
|
void |
addData(float translateX,
float translateY,
float translateZ,
int numVertices,
float[] coordData,
float[] texCoordData,
float[] normalData,
float alpha)
Super fast method for moving a bunch of data into the data elements. |
|
void |
addData(float translateX,
float translateY,
float translateZ,
int numVertices,
float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
Super fast method for moving a bunch of data into the data elements. |
|
protected void |
checkAttributeExistence(int attribIndex,
int attribSize,
boolean b)
|
|
protected boolean |
checkColorsExistence(int colorSize,
boolean b)
|
|
protected boolean |
checkNormalsExistence(boolean b)
|
|
protected boolean |
checkTexCoordExistence(int unit,
int texCoordSize,
boolean b)
|
|
protected void |
copyFrom(SimpleGeometryDataContainer original,
boolean forceDuplicate)
Copies details from the given container. |
|
protected void |
createCoordinates()
|
|
org.openmali.vecmath2.Colorf |
getColor(int vertexIndex,
org.openmali.vecmath2.Colorf colorf)
Gets the color of the vertex at the specified index. |
|
void |
getColor(int vertexIndex,
float[] floatArray)
Gets the color of the vertex at the specified index. |
|
GeomNioFloatData |
getColorData()
|
|
float[] |
getColorRefFloat()
|
|
void |
getColors(int vertexIndex,
float[] floatArray)
Gets the color of the vertex at the specified index. |
|
long |
getColorsOffset()
|
|
int |
getColorsSize()
|
|
void |
getNormal(int vertexIndex,
float[] floatArray)
|
|
org.openmali.vecmath2.Vector3f |
getNormal(int index,
org.openmali.vecmath2.Vector3f normal)
|
|
float[] |
getNormalRefFloat()
|
|
void |
getNormals(int vertexIndex,
float[] floatArray)
|
|
void |
getNormals(int index0,
org.openmali.vecmath2.Vector3f[] vector3fArray)
|
|
GeomNioFloatData |
getNormalsData()
|
|
long |
getNormalsOffset()
|
|
int |
getNormalsSize()
|
|
int |
getNumTextureUnits()
|
|
float[] |
getTexCoordRefFloat(int unit)
|
|
GeomNioFloatData |
getTexCoordsData(int unit)
|
|
int[] |
getTexCoordSetMap()
|
|
void |
getTexCoordSetMap(int[] intArray)
Gets the map for texture coordinates to texture units. |
|
int |
getTexCoordSize(int unit)
|
|
long |
getTexCoordsOffset(int unit)
|
|
void |
getTextureCoordinate(int unit,
int vertexIndex,
float[] floatArray)
Gets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
|
getTextureCoordinate(int unit,
int vertexIndex,
T texCoord)
Gets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
getTextureCoordinates(int unit,
int vertexIndex,
float[] floatArray)
|
|
boolean |
getTriangle(int i0,
int i1,
int i2,
org.openmali.spatial.polygons.Triangle triangle)
Retrieves the the n-th Triangle from the GeometryArray. |
|
GeomNioFloatData |
getVertexAttribData(int index)
|
|
int |
getVertexAttribSize(int index)
|
|
long |
getVertexAttribsOffset(int index)
|
|
float |
getVertexAttribute(int attribIndex,
int vertexIndex)
Gets the vertex attribute of the vertex at the specified index for the specified attribute. |
|
void |
getVertexAttribute(int attribIndex,
int vertexIndex,
float[] floatArray)
|
|
void |
getVertexAttribute(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?> value)
Gets the vertex attribute of the vertex at the specified index for the specified attribute. |
|
void |
getVertexAttributes(int attribIndex,
int vertexIndex,
float[] floatArray)
|
|
int |
getVertexAttributesCount()
|
|
int |
getVertexFormat()
|
|
boolean |
hasColorAlpha()
|
|
boolean |
hasColors()
|
|
boolean |
hasFeature(int flag)
|
|
boolean |
hasNormals()
|
|
boolean |
hasTextureCoordinates()
|
|
boolean |
hasTextureCoordinates(int unit)
|
|
boolean |
hasVertexAttributes()
|
|
boolean |
hasVertexAttributes(int attribIndex)
|
|
void |
makeInterleaved()
Sets up the Geometry to be stored in a single NIO buffer for interleaved geometry. |
|
void |
makeInterleaved(int features,
boolean colorAlpha,
int[] tuSizes,
int[] vaSizes)
Sets up the Geometry to be stored in a single NIO buffer for interleaved geometry. |
|
void |
setColor(int vertexIndex,
org.openmali.vecmath2.Colorf colorf)
Sets the color of the vertex at the specified index. |
|
void |
setColor(int vertexIndex,
float[] floatArray)
Sets the color of the vertex at the specified index. |
|
void |
setColor(int vertexIndex,
float r,
float g,
float b)
Sets the color of the vertex at the specified index. |
|
void |
setColor(int vertexIndex,
float r,
float g,
float b,
float a)
Sets the color of the vertex at the specified index. |
|
void |
setColorData(GeomNioFloatData data)
Directly sets the color data buffer. |
|
void |
setColors(int vertexIndex,
org.openmali.vecmath2.Colorf[] colorfArray)
Sets the colors of the vertices starting at the specified index. |
|
void |
setColors(int vertexIndex,
org.openmali.vecmath2.Colorf[] colorfArray,
int startIndex,
int length)
Sets the colors of the vertices starting at the given index. |
|
void |
setColors(int vertexIndex,
int colorSize,
float[] floatArray)
Sets the colors of the vertices starting at the specified index. |
|
void |
setColors(int vertexIndex,
int colorSize,
float[] floatArray,
int startIndex,
int length)
Sets the colors of the vertices starting at the specified index. |
|
void |
setCoordinateData(GeomNioFloatData data)
Directly sets the coordinates data buffer. |
|
void |
setNormal(int vertexIndex,
float[] floatArray)
Sets the normal of the vertex at the given index. |
|
void |
setNormal(int vertexIndex,
float x,
float y,
float z)
Sets the normal of the vertex at the given index. |
|
void |
setNormal(int vertexIndex,
org.openmali.vecmath2.Vector3f vector3f)
Sets the normal of the vertex at the given index. |
|
void |
setNormalData(GeomNioFloatData data)
Directly sets the normals data buffer. |
|
void |
setNormals(int vertexIndex,
float[] floatArray)
Sets the normals of the vertices starting at the specified index. |
|
void |
setNormals(int vertexIndex,
float[] floatArray,
int startIndex,
int length)
Sets the normals of the vertices starting at the specified index. |
|
void |
setNormals(int vertexIndex,
org.openmali.vecmath2.Vector3f[] vector3fArray)
Sets the normals of the vertices at the specified index. |
|
void |
setNormals(int vertexIndex,
org.openmali.vecmath2.Vector3f[] vector3fArray,
int startIndex,
int length)
Sets the normals of the vertices starting at the specified index. |
|
void |
setTexCoordData(int unit,
GeomNioFloatData data)
Directly sets the tex-coords data buffer for the guven texture-unit. |
|
void |
setTextureCoordinate(int unit,
int vertexIndex,
float s)
Sets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinate(int unit,
int vertexIndex,
float[] floatArray)
Sets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinate(int unit,
int vertexIndex,
float s,
float t)
Sets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinate(int unit,
int vertexIndex,
float s,
float t,
float r)
Sets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinate(int unit,
int vertexIndex,
float s,
float t,
float r,
float q)
Sets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinate(int unit,
int vertexIndex,
org.openmali.vecmath2.TexCoordf<?> texCoord)
Sets the texture coordinate of the vertex at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinates(int unit,
int vertexIndex,
int texCoordSize,
float[] floatArray)
Sets the texture coordinate of the vertex starting at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinates(int unit,
int vertexIndex,
int texCoordSize,
float[] floatArray,
int startIndex,
int length)
Sets the texture coordinate of the vertex starting at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinates(int unit,
int vertexIndex,
org.openmali.vecmath2.TexCoordf<?>[] texCoordArray)
Sets the texture coordinate of the vertex starting at the specified index for the specified coordinates set. |
|
void |
setTextureCoordinates(int unit,
int vertexIndex,
org.openmali.vecmath2.TexCoordf<?>[] texCoordArray,
int startIndex,
int length)
Sets the texture coordinate of the vertex starting at the specified index for the specified coordinates set. |
|
boolean |
setTriangle(int i0,
int i1,
int i2,
org.openmali.spatial.polygons.Triangle triangle)
Applies the the n-th Triangle to the GeometryArray. |
|
void |
setVertexAttribute(int attribIndex,
int vertexIndex,
float value)
Sets the vertex attribute of the vertex at the specified index for the specified attribute. |
|
void |
setVertexAttribute(int attribIndex,
int vertexIndex,
float[] floatArray)
Sets the vertex attribute of the vertex at the specified index for the specified attribute. |
|
void |
setVertexAttribute(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?> value)
Sets the vertex attribute of the vertex at the specified index for the specified attribute. |
|
void |
setVertexAttributes(int attribIndex,
int vertexIndex,
float[] values,
int attribSize)
Sets the vertex attributes. |
|
void |
setVertexAttributes(int attribIndex,
int vertexIndex,
float[] values,
int attribsSize,
int startIndex,
int length)
Sets the vertex attributes. |
|
void |
setVertexAttributes(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?>[] values)
Sets the vertex attributes. |
|
void |
setVertexAttributes(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?>[] values,
int startIndex,
int length)
Sets the vertex attributes. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NORMALS
public static final int COLORS
public static final int TEXTURE_COORDINATES
public static final int VERTEX_ATTRIBUTES
protected GeomNioFloatData normals
protected GeomNioFloatData colors
protected GeomNioFloatData[] texCoords
protected GeomNioFloatData[] vertexAttribs
protected int colorSize
protected long normalsOffset
protected long colorsOffset
protected final long[] texCoordsOffsets
protected final long[] vertexAttribsOffsets
| Constructor Detail |
|---|
protected GeometryDataContainer(GeometryArrayType type,
boolean hasIndex,
int coordsSize,
int vertexCount,
int[] stripCounts,
int indexCount)
public GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount)
public GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount,
int indexCount)
public GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount,
int[] stripCounts)
public GeometryDataContainer(GeometryArrayType type,
int coordsSize,
int vertexCount,
int[] stripCounts,
int indexCount)
| Method Detail |
|---|
public final int getVertexFormat()
public final boolean hasColorAlpha()
true, if this geometry's color component has an alpha channel.public final boolean hasFeature(int flag)
true, if this Geometry has the queried feature(s).
public void addData(float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
public void addData(float translateX,
float translateY,
float translateZ,
int numVertices,
float[] coordData,
float[] texCoordData,
float[] normalData,
float[] colorData)
public void addData(float translateX,
float translateY,
float translateZ,
int numVertices,
float[] coordData,
float[] texCoordData,
float[] normalData,
float alpha)
public void setCoordinateData(GeomNioFloatData data)
setCoordinateData in class SimpleGeometryDataContainerdata - public void setNormalData(GeomNioFloatData data)
data - public final GeomNioFloatData getNormalsData()
public final int getNormalsSize()
public final long getNormalsOffset()
public void setColorData(GeomNioFloatData data)
data - public final GeomNioFloatData getColorData()
public final int getColorsSize()
public final long getColorsOffset()
public void setTexCoordData(int unit,
GeomNioFloatData data)
unit - data - public final GeomNioFloatData getTexCoordsData(int unit)
unit -
public final int getTexCoordSize(int unit)
public final int getNumTextureUnits()
public final int[] getTexCoordSetMap()
public final void getTexCoordSetMap(int[] intArray)
intArray - public final long getTexCoordsOffset(int unit)
public final GeomNioFloatData getVertexAttribData(int index)
index -
public final int getVertexAttribSize(int index)
index -
public final long getVertexAttribsOffset(int index)
protected void createCoordinates()
createCoordinates in class SimpleGeometryDataContainerpublic final boolean hasNormals()
true, if this geometry contains normal data.protected final boolean checkNormalsExistence(boolean b)
public void setNormal(int vertexIndex,
float[] floatArray)
vertexIndex - The index of the vertex to modifyfloatArray - The new normal data. Its size must be a multiple of 3.
public void setNormal(int vertexIndex,
org.openmali.vecmath2.Vector3f vector3f)
vertexIndex - THe index of the vertex to modifyvector3f - The new normal
public void setNormals(int vertexIndex,
float[] floatArray)
vertexIndex - The index of the first vertex to modifyfloatArray - The new normals. Its size must be a multiple of 3.
public void setNormals(int vertexIndex,
org.openmali.vecmath2.Vector3f[] vector3fArray)
vertexIndex - The index of the first vertex to modifyvector3fArray - The new normals
public void setNormals(int vertexIndex,
float[] floatArray,
int startIndex,
int length)
vertexIndex - The index of the first vertex to modifyfloatArray - The new normal data. Its size must be a multiple of 3.startIndex - The first coordinate to use in the given array. The
first element of the array to be used will be startIndex*3.length - The number of vertices to modify
public void setNormals(int vertexIndex,
org.openmali.vecmath2.Vector3f[] vector3fArray,
int startIndex,
int length)
vertexIndex - The index of the first vertex to modifyvector3fArray - The new normalsstartIndex - The index of the first coordinate to use in the given
array.length - The number of vertices to modify
public void setNormal(int vertexIndex,
float x,
float y,
float z)
vertexIndex - THe index of the vertex to modifyx - The new normaly - The new normalz - The new normal
public void getNormal(int vertexIndex,
float[] floatArray)
public org.openmali.vecmath2.Vector3f getNormal(int index,
org.openmali.vecmath2.Vector3f normal)
public void getNormals(int vertexIndex,
float[] floatArray)
public void getNormals(int index0,
org.openmali.vecmath2.Vector3f[] vector3fArray)
public final boolean hasColors()
true, if this Geometry contains color data.
protected final boolean checkColorsExistence(int colorSize,
boolean b)
public void setColor(int vertexIndex,
float[] floatArray)
vertexIndex - The index of the vertex to modifyfloatArray - The new color data. The first colorSize
elements will be used.
public void setColor(int vertexIndex,
org.openmali.vecmath2.Colorf colorf)
vertexIndex - The index of the vertex to modifycolorf - The new color.
public void setColors(int vertexIndex,
int colorSize,
float[] floatArray)
vertexIndex - The index of the first vertex to modifycolorSize - floatArray - The new color value. Its size must be a multiple of
colorSize.
public void setColors(int vertexIndex,
org.openmali.vecmath2.Colorf[] colorfArray)
vertexIndex - The index of the first vertex to modify.colorfArray - The new color values.
public void setColors(int vertexIndex,
int colorSize,
float[] floatArray,
int startIndex,
int length)
vertexIndex - The index of the first vertex to be modified.floatArray - The new color data. The size of the array must be a
multiple of colorSize.colorSize - startIndex - The index of the first color in the given array. The
first read item of the array will be startIndex*colorSize.length - The number of colors to copy
public void setColors(int vertexIndex,
org.openmali.vecmath2.Colorf[] colorfArray,
int startIndex,
int length)
vertexIndex - The index of the first vertex to modifycolorfArray - The new color data.startIndex - The index of the first color in the given arraylength - The number of vertices to modify.
public void setColor(int vertexIndex,
float r,
float g,
float b)
vertexIndex - The index of the vertex to modifyr - g - b -
public void setColor(int vertexIndex,
float r,
float g,
float b,
float a)
vertexIndex - The index of the vertex to modifyr - g - b - a -
public void getColor(int vertexIndex,
float[] floatArray)
vertexIndex - The index of the vertex to modifyfloatArray -
public org.openmali.vecmath2.Colorf getColor(int vertexIndex,
org.openmali.vecmath2.Colorf colorf)
vertexIndex - The index of the vertex to modifycolorf - The new color.
public void getColors(int vertexIndex,
float[] floatArray)
vertexIndex - The index of the vertex to modifycolorf - The new color.public final boolean hasTextureCoordinates()
true, if this Geometry contains texture-coordinate data (for any texture-unit).public final boolean hasTextureCoordinates(int unit)
true, if this Geometry contains texture-coordinate data (for the given texture-unit).
protected final boolean checkTexCoordExistence(int unit,
int texCoordSize,
boolean b)
public void setTextureCoordinate(int unit,
int vertexIndex,
float[] floatArray)
unit - The coordinates set.vertexIndex - The index of the vertex to modifyfloatArray - The new texture coordinate data. Its size must be 2, 3 or 4.
public void setTextureCoordinate(int unit,
int vertexIndex,
org.openmali.vecmath2.TexCoordf<?> texCoord)
unit - The coordinates set.vertexIndex - The index of the vertex to modifytexCoord -
public void setTextureCoordinates(int unit,
int vertexIndex,
int texCoordSize,
float[] floatArray)
unit - The coordinates set.vertexIndex - The index of the first vertex to modifytexCoordSize - 1, 2, 3 or 4floatArray - The new coordinate data. Its size must be a multiple of
2, 3 or 4 depending on texCoordSet format.
public void setTextureCoordinates(int unit,
int vertexIndex,
org.openmali.vecmath2.TexCoordf<?>[] texCoordArray)
unit - The coordinates set.vertexIndex - The index of the first vertex to modifytexCoordArray -
public void setTextureCoordinates(int unit,
int vertexIndex,
int texCoordSize,
float[] floatArray,
int startIndex,
int length)
unit - The coordinates set.vertexIndex - The index of the first vertex to modifytexCoordSize - floatArray - The new coordinate data. Its size must be a multiple of 2.startIndex - length -
public void setTextureCoordinates(int unit,
int vertexIndex,
org.openmali.vecmath2.TexCoordf<?>[] texCoordArray,
int startIndex,
int length)
unit - The coordinates set.vertexIndex - The index of the first vertex to modifytexCoordArray - startIndex - length -
public void setTextureCoordinate(int unit,
int vertexIndex,
float s)
unit - The coordinates set.vertexIndex - The index of the vertex to modifys -
public void setTextureCoordinate(int unit,
int vertexIndex,
float s,
float t)
unit - The coordinates set.vertexIndex - The index of the vertex to modifys - t -
public void setTextureCoordinate(int unit,
int vertexIndex,
float s,
float t,
float r)
unit - The coordinates set.vertexIndex - The index of the vertex to modifys - t - r -
public void setTextureCoordinate(int unit,
int vertexIndex,
float s,
float t,
float r,
float q)
unit - The coordinates set.vertexIndex - The index of the vertex to modifys - t - r - q -
public void getTextureCoordinate(int unit,
int vertexIndex,
float[] floatArray)
unit - The coordinates set.vertexIndex - The index of the vertex to modifyfloatArray - The new texture coordinate data. Its size must be 2, 3 or 4.
public <T extends org.openmali.vecmath2.TexCoordf<?>> T getTextureCoordinate(int unit,
int vertexIndex,
T texCoord)
unit - The coordinates set.vertexIndex - The index of the vertex to modifytexCoord -
public void getTextureCoordinates(int unit,
int vertexIndex,
float[] floatArray)
public final boolean hasVertexAttributes()
true, if this Geometry contains vertex-attribute data.public final boolean hasVertexAttributes(int attribIndex)
attribIndex -
true, if this Geometry contains vertex-attribute data at the given index.public final int getVertexAttributesCount()
protected final void checkAttributeExistence(int attribIndex,
int attribSize,
boolean b)
public void setVertexAttribute(int attribIndex,
int vertexIndex,
float[] floatArray)
attribIndex - The attributes set.vertexIndex - The index of the vertex to modifyfloatArray - The new attribute data. Its size must be 1, 2, 3 or 4.
public void setVertexAttribute(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?> value)
attribIndex - The attributes set.vertexIndex - The index of the vertex to modifyvalue - The new attribute data.
public void setVertexAttributes(int attribIndex,
int vertexIndex,
float[] values,
int attribSize)
attribIndex - The attributes set.vertexIndex - The index of the first vertex to modifyvalues - The new attribute data.attribSize - the size of each attribute element (1, 2, 3, 4)
public void setVertexAttributes(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?>[] values)
attribIndex - The attributes set.vertexIndex - The index of the first vertex to modifyvalues - The new attribute data.
public void setVertexAttributes(int attribIndex,
int vertexIndex,
float[] values,
int attribsSize,
int startIndex,
int length)
attribIndex - The attributes set.vertexIndex - The index of the first vertex to modifyvalues - The new attribute data.attribsSize - (1, 2, 3, 4)startIndex - length -
public void setVertexAttributes(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?>[] values,
int startIndex,
int length)
attribIndex - The attributes set.vertexIndex - The index of the first vertex to modifyvalues - The new attribute data.startIndex - length -
public void setVertexAttribute(int attribIndex,
int vertexIndex,
float value)
attribIndex - The attributes set.vertexIndex - The index of the vertex to modifyvalue - The new attribute data.
public void getVertexAttribute(int attribIndex,
int vertexIndex,
float[] floatArray)
public void getVertexAttribute(int attribIndex,
int vertexIndex,
org.openmali.vecmath2.TupleNf<?> value)
attribIndex - The attributes set.vertexIndex - The index of the vertex to modifyvalue - The buffer for the attribute data.
public void getVertexAttributes(int attribIndex,
int vertexIndex,
float[] floatArray)
public float getVertexAttribute(int attribIndex,
int vertexIndex)
attribIndex - The attributes set.vertexIndex - The index of the vertex to modify
public boolean setTriangle(int i0,
int i1,
int i2,
org.openmali.spatial.polygons.Triangle triangle)
setTriangle in class SimpleGeometryDataContaineri0 - the first triangle's vertex-indexi1 - the second triangle's vertex-indexi2 - the third triangle's vertex-indextriangle -
public boolean getTriangle(int i0,
int i1,
int i2,
org.openmali.spatial.polygons.Triangle triangle)
getTriangle in class SimpleGeometryDataContaineri0 - the first triangle's vertex-indexi1 - the second triangle's vertex-indexi2 - the third triangle's vertex-indextriangle -
public float[] getColorRefFloat()
public float[] getNormalRefFloat()
public float[] getTexCoordRefFloat(int unit)
public void makeInterleaved(int features,
boolean colorAlpha,
int[] tuSizes,
int[] vaSizes)
features - colorAlpha - tuSizes - the sizes of the texture-units (may be null, if not contained in the features mask)vaSizes - the sizes of the vertex-arrays (may be null, if not contained in the features mask)public void makeInterleaved()
protected void copyFrom(SimpleGeometryDataContainer original,
boolean forceDuplicate)
SimpleGeometryDataContainer
copyFrom in class SimpleGeometryDataContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||