delete!!

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

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

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.