|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.NormalComputerJava
class NormalComputerJava
Simple implementation of a NormalComputer
using Java
Constructor Summary | |
---|---|
NormalComputerJava(ResourceHandle<java.nio.FloatBuffer> vertexNormalsHandle,
ParticleData p,
FaceData f,
NormalData n)
Creates a new normal computer that uses the given simulation- and normal data, and writes the vertex normals into the buffer obtained from the given handle. |
Method Summary | |
---|---|
void |
shutdown()
Shut down and free all alocated resources |
void |
updateNormals()
Update the normals |
void |
writeNormals()
Write the normals data into a target buffer, if necessary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
NormalComputerJava(ResourceHandle<java.nio.FloatBuffer> vertexNormalsHandle, ParticleData p, FaceData f, NormalData n)
vertexNormalsHandle
- The handle for the vertex normals
bufferp
- The ParticleData
f
- The FaceData
n
- The NormalData
Method Detail |
---|
public void writeNormals()
NormalComputer
writeNormals
in interface NormalComputer
public void updateNormals()
NormalComputer
updateNormals
in interface NormalComputer
public void shutdown()
NormalComputer
shutdown
in interface NormalComputer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |