|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalPhysique
public class CalPhysique
The physique class. This synchronizes on the model for which it is providing the physique.
| Field Summary | |
|---|---|
protected CalModel |
model
|
protected boolean |
normalize
|
| Constructor Summary | |
|---|---|
CalPhysique(CalModel model)
Constructs the physique instance. |
|
| Method Summary | |
|---|---|
int |
calculateNormals(CalSubmesh submesh,
Vector3fBuffer normalBuffer)
Calculates the transformed normal data. |
int |
calculateTangents(CalSubmesh submesh,
int mapId,
Vector3fBuffer tangentBuffer)
Calculates the transformed tangent data. |
int |
calculateVertices(CalSubmesh submesh,
Vector3fBuffer vertexBuffer)
Calculates the transformed vertex data. |
void |
setNormalization(boolean normalize)
Sets the normalization flag to true or false. |
void |
update()
Updates all the internally handled attached meshes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalModel model
protected boolean normalize
| Constructor Detail |
|---|
public CalPhysique(CalModel model)
model - A pointer to the model that should be managed with this
physique instance.| Method Detail |
|---|
public void setNormalization(boolean normalize)
public int calculateVertices(CalSubmesh submesh,
Vector3fBuffer vertexBuffer)
submesh - A pointer to the submesh from which the vertex data should be
calculated and returned.vertexBuffer - A pointer to the user-provided buffer where the vertex data is
written to.
public int calculateNormals(CalSubmesh submesh,
Vector3fBuffer normalBuffer)
submesh - A pointer to the submesh from which the normal data should be
calculated and returned.normalBuffer - A pointer to the user-provided buffer where the normal data is
written to.
public int calculateTangents(CalSubmesh submesh,
int mapId,
Vector3fBuffer tangentBuffer)
submesh - A pointer to the submesh from which the tangent data should be
calculated and returned.mapId - The texture layer id for the tangentstangentBuffer - A pointer to the user-provided buffer where the tangent data
is written to.
public void update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||