void display (void) { // this code executes whenever the window is redrawn (when opened, // moved, resized, etc. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // set the viewing transform setUpView(); setUpLight(); // start drawing objects glEnable(GL_DEPTH_TEST); drawFish(); glDisable(GL_DEPTH_TEST); drawBubbles(); glutSwapBuffers(); }
//-------------------------------------------------------------- void ParticleVisualization::draw(){ /* string buf; buf = "listening for osc messages on port" + ofToString(PORT); ofDrawBitmapString(buf, 10, 20); // draw mouse state buf = "mouse: " + ofToString(mouseX, 4) + " " + ofToString(mouseY, 4); ofDrawBitmapString(buf, 430, 20); ofDrawBitmapString(mouseButtonState, 580, 20); for(int i = 0; i < NUM_MSG_STRINGS; i++){ ofDrawBitmapString(msg_strings[i], 10, 40 + 15 * i); } */ ofBackground(0,0,0); drawBubbles(); }
void EffectBoil::apply() { incrementBubbles(); drawBubbles(); }