void simulateFluids(void) { // simulate fluid advectVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM, DT); diffuseProject(vxfield, vyfield, CPADW, DIM, DT, VIS); updateVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM); advectParticles(vbo, dvfield, DIM, DIM, DT); }
void GLFluids::simulateFluids(void) { // simulate fluid advectVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM, DT); diffuseProject(vxfield, vyfield, CPADW, DIM, DT, VIS, planr2c, planc2r); updateVelocity(dvfield, (float *)vxfield, (float *)vyfield, DIM, RPADW, DIM); advectParticles(cuda_vbo_resource, dvfield, DIM, DIM, DT); }