|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Geometry
Interface for the geometry of a SwoglComponent
.
Method Summary | |
---|---|
boolean |
areTexCoordsModified()
Returns whether the texture coordinates have been modified |
boolean |
areVerticesModified()
Returns whether the vertices have been modified |
void |
getNormal(int index,
javax.vecmath.Tuple3f normal)
Stores the normal with the given index in the given argument |
int |
getNumTriangles()
Returns the number of triangles in this Geometry |
int |
getNumVertices()
Returns the number of vertices in this Geometry |
void |
getTexCoord(int index,
javax.vecmath.Tuple2f texCoord)
Stores the texture coordinates of the vertex with the given index in the given argument |
void |
getVertex(int index,
javax.vecmath.Tuple3f vertex)
Stores the vertex with the given index in the given argument |
int |
getVertexIndex(int index)
Returns the specified vertex index. |
void |
setNormal(int index,
javax.vecmath.Tuple3f normal)
Sets the normal of the vertex with the given index |
void |
setTexCoord(int index,
javax.vecmath.Tuple2f texCoord)
Set the texture coordinates of the vertex with the given index |
void |
setTexCoordsModified(boolean modified)
Set the flag which indicates that the texture coordinates of this geometry have been modified, and should be updated by the renderer before the next rendering pass. |
void |
setVertex(int index,
javax.vecmath.Tuple3f vertex)
Set the coordinates of the vertex with the specified index |
void |
setVerticesModified(boolean modified)
Set the flag which indicates that the vertex positions of this geometry have been modified, and should be updated by the renderer before the next rendering pass. |
Method Detail |
---|
int getNumTriangles()
int getVertexIndex(int index)
index
- The number of the index to return
int getNumVertices()
void getVertex(int index, javax.vecmath.Tuple3f vertex)
index
- The index of the vertexvertex
- Will store the vertexvoid setVertex(int index, javax.vecmath.Tuple3f vertex)
index
- The index of the vertexvertex
- The coordinates the vertex should havevoid getNormal(int index, javax.vecmath.Tuple3f normal)
index
- The index of the vertex whose normal should be obtainednormal
- Will store the normalvoid setNormal(int index, javax.vecmath.Tuple3f normal)
index
- The index of the vertex whose normal should be setnormal
- The normal to set for the vertexvoid getTexCoord(int index, javax.vecmath.Tuple2f texCoord)
index
- The index of the vertex whose texture coordinates
should be obtainedtexCoord
- Will store the texture coordinatesvoid setTexCoord(int index, javax.vecmath.Tuple2f texCoord)
index
- The index of the vertex whose texture coordinates
should be settexCoord
- The texture coordinates to setvoid setVerticesModified(boolean modified)
modified
- Whether the vertices have been modifiedboolean areVerticesModified()
void setTexCoordsModified(boolean modified)
modified
- Whether the texture coordinates have been modifiedboolean areTexCoordsModified()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |