|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.NormalComputerJOCL
class NormalComputerJOCL
Implementation of a NormalComputer
using OpenCL
Constructor Summary | |
---|---|
NormalComputerJOCL(CLSetup clSetup,
ParticleData p,
ResourceHandle<org.jocl.cl_mem> positions,
FaceData f,
NormalData n,
ResourceHandle<org.jocl.cl_mem> vertexNormals,
ResourceHandle<java.nio.FloatBuffer> renderingVertexNormals)
Creates a new normal computer. |
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 |
---|
NormalComputerJOCL(CLSetup clSetup, ParticleData p, ResourceHandle<org.jocl.cl_mem> positions, FaceData f, NormalData n, ResourceHandle<org.jocl.cl_mem> vertexNormals, ResourceHandle<java.nio.FloatBuffer> renderingVertexNormals)
clSetup
- The OpenCL setupp
- The ParticleData
positions
- The vertex positions handlef
- The FaceData
n
- The NormalData
vertexNormals
- The vertex normals handlerenderingVertexNormals
- 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 |