PDA

View Full Version : delete!!



01-18-2004, 09:17 PM
i am a beginner in openGL...and just started learning...
i made two qadrilateral by giving four corners..side by side..and now i want to delete ( disappear from screen) while programme is running...
i will be thankful..if someone can help with syntax and concept!!
thanks http://www.opengl.org/discussion_boards/ubb/smile.gif

mikael_aronsson
01-19-2004, 01:45 AM
Hi !

You never "delete" anything in OpenGL, you just render everything as it looks at that moment, if you want to "delete" it you just set some flag to tell your rendering code what to render and then call some update function to make the OS redraw the contents of the window (InvalidateRect( hWnd, NULL, TRUE); for example on Windows).

Mikael

nexusone
01-19-2004, 05:22 AM
You update the screen image by redrawing the scene. To remove or delete an object from the scene, you just do not draw it the next time you do a screen update.