deleting object

Hello friends,

I want to make a cube and delete it when i translate it to other position. Is that possible??


Maybe with using double buffering and swapping buffers and the end of each rendering calls ?

thanks but i am already using double buffering and using the swap call! is there any specific call which need to be implemented to make the translated cube invisible at the next position??

Clearing the color buffer ?

Yes, do not draw the cube at the “next position” this will make it invisible.

just put sticky tape over your screen, gone ! just like magic :slight_smile:

Once u have translated the cube to the new position, dont draw it.

Like I said

"Doctor, doctor, when I do this, it hurts !

  • then stop doing it."