Cross platform openGL grid-based fluid simulation with rigid body integration