|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jocl.cloth.ClothSimulationCoreJOCL
class ClothSimulationCoreJOCL
The core of a cloth Simulation implemented with OpenCL.
| Constructor Summary | |
|---|---|
ClothSimulationCoreJOCL(CLU clu,
ParticleData p,
ResourceHandle<org.jocl.cl_mem> positions,
ResourceHandle<org.jocl.cl_mem> candidatePositions,
EdgeData[] e,
ResourceHandle<java.nio.FloatBuffer> renderingPositions)
Creates a new cloth simulation core |
|
| Method Summary | |
|---|---|
void |
performTimeStep(float dt)
Perform a simulation step with the given size |
void |
prepareRendering()
Perform any steps necessary to render the current simulation state |
void |
shutdown()
Shut down the simulation and free all allocated resources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ClothSimulationCoreJOCL(CLU clu,
ParticleData p,
ResourceHandle<org.jocl.cl_mem> positions,
ResourceHandle<org.jocl.cl_mem> candidatePositions,
EdgeData[] e,
ResourceHandle<java.nio.FloatBuffer> renderingPositions)
clu - The CL utilitiesp - The ParticleDatapositions - The positionscandidatePositions - The candidate positionse - The EdgeDatarenderingPositions - If the buffers are not shared
between OpenGL and OpenCL, then this is the handle to the
rendering buffer. Otherwise, this is null.| Method Detail |
|---|
public void prepareRendering()
Simulation
prepareRendering in interface Simulationpublic void performTimeStep(float dt)
Simulation
performTimeStep in interface Simulationdt - The step sizepublic void shutdown()
Simulation
shutdown in interface Simulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||