|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(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(SimData simData,
de.javagl.simplerenderer.SimpleRenderer renderer,
de.javagl.simplerenderer.SimpleObject clothObject)
simData - The SimDatarenderer - 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 SimulationtimeStep - The step sizepublic void prepareRendering()
Simulation
prepareRendering in interface Simulationpublic void shutdown()
Simulation
shutdown in interface Simulation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||