PDA

View Full Version : deleting object



prashun
03-29-2011, 11:08 AM
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, 11:19 AM
Maybe with using double buffering and swapping buffers and the end of each rendering calls ?

prashun
03-29-2011, 11:25 AM
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, 11:36 AM
Clearing the color buffer ?

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

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

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

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

Like I said

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