|
jjdh API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjdh.opengl.meshes.core.AbstractMesh
jjdh.opengl.meshes.core.VertexArrayMesh
jjdh.java.resource.loader.MD2Mesh
public class MD2Mesh
Field Summary | |
---|---|
protected static float |
DEFAULT_SCALE_FACTOR
All loaded md2-meshes will be scaled by this factor. |
protected Map<String,List<Vector3D>> |
keyframeMap
Contains all keyframes with the respective name as key. |
protected List<String> |
keyframeNames
Contains the names of all keyframes. |
private short[][] |
triangleVertices
Indices needed to fill the vertexBuffer with the data from the
vertices . |
private VertexBuffer |
vertexBuffer
Internal used by the inherited VertexArrayJob . |
protected List<Vector3D> |
vertices
The current positions of the vertices of this mesh. |
Fields inherited from class jjdh.opengl.meshes.core.VertexArrayMesh |
---|
job |
Fields inherited from class jjdh.opengl.meshes.core.AbstractMesh |
---|
material, position, rotation, scale |
Constructor Summary | |
---|---|
MD2Mesh(InputStream in,
com.sun.opengl.util.texture.Texture texture)
Creates a new Mesh by reading a valid MD2- InputStream . |
Method Summary | |
---|---|
protected void |
consumeStream(InputStream in)
|
static List<Vector3D> |
deepCopy(List<Vector3D> data)
|
List<Vector3D> |
getKeyframe(String name)
|
List<String> |
getKeyframeNames()
|
List<Vector3D> |
getVertices()
|
protected void |
initJob(com.sun.opengl.util.texture.Texture texture)
|
void |
setVertices(List<Vector3D> newVertices)
|
void |
updateVertexBuffer()
Updates the internal Job with the data of the current vertex list. |
Methods inherited from class jjdh.opengl.meshes.core.VertexArrayMesh |
---|
bind, dispose, privateRender |
Methods inherited from class jjdh.opengl.meshes.core.AbstractMesh |
---|
applyMaterial, applyPosition, applyRotation, applyScaling, getMaterial, getPosition, move, render, rotate, setMaterial, setPosition, setRotation, setScale, toString, unApplyMaterial |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final float DEFAULT_SCALE_FACTOR
protected List<String> keyframeNames
protected Map<String,List<Vector3D>> keyframeMap
protected List<Vector3D> vertices
private short[][] triangleVertices
vertexBuffer
with the data from the
vertices
.
private VertexBuffer vertexBuffer
VertexArrayJob
.
Constructor Detail |
---|
public MD2Mesh(InputStream in, com.sun.opengl.util.texture.Texture texture) throws Throwable
InputStream
.
in
- the stream to read fromtexture
- the skin to use
Throwable
Method Detail |
---|
public static List<Vector3D> deepCopy(List<Vector3D> data)
public List<String> getKeyframeNames()
public List<Vector3D> getKeyframe(String name)
public List<Vector3D> getVertices()
public void setVertices(List<Vector3D> newVertices)
public void updateVertexBuffer()
protected void consumeStream(InputStream in) throws Throwable
Throwable
protected void initJob(com.sun.opengl.util.texture.Texture texture)
|
jjdh API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |