• Advertisement
Sign in to follow this  

glPushName() scope..

This topic is 3320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This may be really stupid question but I'd be grateful if someone could clarify this. Basically I'm adding in object selection in my project. I have a number of classes, worldmanager, viewer, scene, and object. I'm trying to name the objects, new instances of objects get created in the scene class so I was wondering if use glPushName(); to name an object in the scene class, am I then still able to check for hits in the viewer class for instance or would I need to check / process the hits in the same class as where I'm naming objects?

Share this post


Link to post
Share on other sites
Advertisement
Thanks for the reply,

So in that case, if I setup object names in one class and test for hits of an object in other it won't matter.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement