|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.ClothSimulationJOCL
class ClothSimulationJOCL
Implementation of a Simulation
that performs a
cloth simulation with OpenCL. It combines a simulation
core, namely a ClothSimulationCoreJOCL
, with
a NormalComputerJOCL
Constructor Summary | |
---|---|
ClothSimulationJOCL(CLClothConfig clConfig,
SimData simData,
de.javagl.simplerenderer.SimpleRenderer renderer,
de.javagl.simplerenderer.SimpleObject clothObject)
Creates a new cloth simulation from the given data |
Method Summary | |
---|---|
void |
performTimeStep(float timeStep)
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 |
---|
ClothSimulationJOCL(CLClothConfig clConfig, SimData simData, de.javagl.simplerenderer.SimpleRenderer renderer, de.javagl.simplerenderer.SimpleObject clothObject)
clConfig
- The CL configurationsimData
- The SimData
renderer
- The renderer. May be null
.clothObject
- The cloth object. May be null
if the renderer is null
Method Detail |
---|
public void performTimeStep(float timeStep)
Simulation
performTimeStep
in interface Simulation
timeStep
- The step sizepublic void prepareRendering()
Simulation
prepareRendering
in interface Simulation
public void shutdown()
Simulation
shutdown
in interface Simulation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |