move ExplititEuler cloth solver to its own file, so it can be replaced by PDB, implicit euler etc

add wireframe toggle ('w' key)
add --paused command-line option to start simulation in paused mode
render cloth using drawPoints method
This commit is contained in:
erwincoumans
2013-09-06 18:09:35 -07:00
parent d0faea90f9
commit 8faac34801
8 changed files with 183 additions and 97 deletions

View File

@@ -0,0 +1,15 @@
#ifndef EXPLICIT_EULER_H
#define EXPLICIT_EULER_H
struct ExplicitEuler
{
static void computeForces(struct CpuSoftClothDemoInternalData* data, char* vtx, int vertexStride, float dt);
static void integrateExplicitEuler(struct CpuSoftClothDemoInternalData* data, char* vtx, int vertexStride,float dt);
static void solveConstraints(struct CpuSoftClothDemoInternalData* data, char* vtx, int vertexStride,float dt);
};
#endif //EXPLICIT_EULER_H