| 116 | extern "C" void advectParticles(GLuint vbo, cData *v, int dx, int dy, float dt); |
| 117 | |
| 118 | void simulateFluids(void) |
| 119 | { |
| 120 | // simulate fluid |
| 121 | advectVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM, DT); |
| 122 | diffuseProject(vxfield, vyfield, CPADW, DIM, DT, VIS); |
| 123 | updateVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM); |
| 124 | advectParticles(vbo, dvfield, DIM, DIM, DT); |
| 125 | } |
| 126 | |
| 127 | void display(void) |
| 128 | { |