ofxMSAFluidSolver* ofxMSAFluidDrawer::setup(ofxMSAFluidSolver* f) { deleteFluidSolver(); _fluidSolver = f; createTexture(); return _fluidSolver; }
FluidSolver* FluidDrawerBase::setup(FluidSolver* f) { deleteFluidSolver(); _fluidSolver = f; allocatePixels(); createTexture(); return _fluidSolver; }
FluidSolver* FluidDrawerBase::setup(int NX, int NY) { deleteFluidSolver(); _fluidSolver = new FluidSolver; _fluidSolver->setup(NX, NY); allocatePixels(); createTexture(); return _fluidSolver; }
ofxMSAFluidSolver* ofxMSAFluidDrawer::setup(int NX, int NY) { // printf("ofxMSAFluidDrawer::createFluidSolver(%i, %i, %.6f, %.6f, %.6f)\n", NX, NY, dt, visc, fadeSpeed); deleteFluidSolver(); _fluidSolver = new ofxMSAFluidSolver; _fluidSolver->setup(NX, NY); createTexture(); return _fluidSolver; }
FluidDrawerBase::~FluidDrawerBase() { deleteFluidSolver(); }
ofxMSAFluidDrawer::~ofxMSAFluidDrawer() { // printf("ofxMSAFluidDrawer::~ofxMSAFluidDrawer()\n"); deleteFluidSolver(); }