/* Draw the changes to the screen. Remove the changing objects, redraw the strings and draw the changing objects again. */ void BaseEngine::DrawChanges() { // Remove objects from their old positions UndrawChangingObjects(); // Draw the text for the user DrawStrings(); // Draw objects at their new positions DrawChangingObjects(); }
/* Draw the screen - copy the background buffer, then draw the text and objects. */ void BaseEngine::DrawScreen() { // First draw the background //this->CopyBackgroundPixels( 100, 100, 100, 100 ); CopyAllBackgroundBuffer(); // And finally, draw the text DrawStrings(); // Then draw the changing objects DrawChangingObjects(); }
/* Draw the changes to the screen. Remove the changing objects, redraw the strings and draw the changing objects again. */ void Demo4Main::DrawChanges() { // NEW IF if ( m_state == stateInit ) return; // Do not draw objects if initialising // Remove objects from their old positions UndrawChangingObjects(); // Draw the text for the user DrawStrings(); // Draw objects at their new positions DrawChangingObjects(); }
/* Draw the screen - copy the background buffer, then draw the text and objects. */ void Demo4Main::DrawScreen() { // First draw the background //this->CopyBackgroundPixels( 100, 100, 100, 100 ); CopyAllBackgroundBuffer(); // And finally, draw the text DrawStrings(); // NEW IF if ( m_state == stateInit ) return; // Do not draw objects if initialising // Then draw the changing objects DrawChangingObjects(); }