|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.rendering.r3d.multiresolution.MeshFragmentData
public class MeshFragmentData
The MeshFragmentData
holds the fragment data.
Constructor Summary | |
---|---|
MeshFragmentData(PooledByteBuffer rawBuffer,
FloatBuffer vertexBuffer,
Buffer normalsBuffer,
Buffer indexBuffer)
Construct from the given rawbuffer. |
Method Summary | |
---|---|
void |
freeBuffers()
free the pooled buffer. |
Buffer |
getNormals()
|
int |
getNumTriangles()
|
Buffer |
getTriangles()
Returns the buffer that contains the vertices of the triangles. |
FloatBuffer |
getVertices()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeshFragmentData(PooledByteBuffer rawBuffer, FloatBuffer vertexBuffer, Buffer normalsBuffer, Buffer indexBuffer)
rawBuffer
- vertexBuffer
- normalsBuffer
- indexBuffer
- Method Detail |
---|
public int getNumTriangles()
public FloatBuffer getVertices()
public Buffer getTriangles()
The returned buffer can be (depending on the number of vertices in the fragment):
ByteBuffer
ShortBuffer
IntBuffer
public Buffer getNormals()
public void freeBuffers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |