PDA

View Full Version : Selecting Objects



Mukund
05-10-2010, 07:40 AM
Hello eveyone.

Well this is what i intend to do:
I have a scene consisting of many objects(say squares , circles etc).

I need to be able to pick one object and move it around.

Well i tried this approach:

Define boundaries for each object.So i can identify which object is selected.And then when the selected object is dragged around , i redraw the entire scene with only the position of the selected object changing.

So i basically need to keep track of all drawn objects and redraw them again!

But is'nt this a bad method? I mean redrawing the entire scene over and over again!!

Can anyone please tell me if there is a better method to do this?

Thanks in advance.

Yomboprime
05-10-2010, 08:35 AM
No, it is a common procedure, to redraw all the scene though only one object changes