|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.NormalComputerJOCL
class NormalComputerJOCL
Implementation of a NormalComputer using OpenCL
| Constructor Summary | |
|---|---|
NormalComputerJOCL(CLU clu,
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(CLU clu,
ParticleData p,
ResourceHandle<org.jocl.cl_mem> positions,
FaceData f,
NormalData n,
ResourceHandle<org.jocl.cl_mem> vertexNormals,
ResourceHandle<java.nio.FloatBuffer> renderingVertexNormals)
clu - The CLU utilitiesp - The ParticleDatapositions - The vertex positions handlef - The FaceDatan - The NormalDatavertexNormals - The vertex normals handlerenderingVertexNormals - | Method Detail |
|---|
public void writeNormals()
NormalComputer
writeNormals in interface NormalComputerpublic void updateNormals()
NormalComputer
updateNormals in interface NormalComputerpublic void shutdown()
NormalComputer
shutdown in interface NormalComputer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||