PDA

View Full Version : deleting object



prashun
03-29-2011, 12:08 PM
Hello friends,

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

thanks
roy

_arts_
03-29-2011, 12:19 PM
Maybe with using double buffering and swapping buffers and the end of each rendering calls ?

prashun
03-29-2011, 12:25 PM
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??

_arts_
03-29-2011, 12:36 PM
Clearing the color buffer ?

McLeary
03-29-2011, 12:36 PM
Yes, do not draw the cube at the "next position" this will make it invisible.

dukey
03-29-2011, 03:04 PM
just put sticky tape over your screen, gone ! just like magic :)

mobeen
03-30-2011, 02:31 AM
Once u have translated the cube to the new position, dont draw it.

McLeary
03-30-2011, 09:40 AM
Once u have translated the cube to the new position, dont draw it.

Like I said

ZbuffeR
03-30-2011, 12:44 PM
"Doctor, doctor, when I do this, it hurts !
- then stop doing it."
:D