PDA

View Full Version : To disappear objects & then making them re-appear



queries
12-13-2004, 09:11 PM
Hi,

I have developed an application in which I am displaying my objects one below the other after mouse-click(Left Click) on the parent object.

Then i am picking one of those drawn objects.Here I want that on picking one of my objects if I click(Right Click) on this chosen object my other objects should disappear.These disappeared objects should reappear again if i click on my parent object.

Thanks in advance,
Queries

FireCat12
12-14-2004, 07:21 AM
I would suggest making a genralized draw loop that displays all the objects and have each object record as a state variable if it should be drawn then your picking code will only need to change the objects state variables and request a opengl redisplay to make objects appear or dissapear.