[SOLVED]Watch static global Singleton variable
-
- Orc Shaman
- Posts: 788
- Joined: Mon Jan 18, 2010 6:06 pm
- Location: Costa Mesa, California
- x 24
[SOLVED]Watch static global Singleton variable
Ogre Version: :1.10
Operating System:
Render System:
Hello. Is there a proper way define a static global variable for a Singleton class derived from ogre Singleton? I want to be able to watch the global variables for any Singleton classes in Visual Studio but it seems like I cannot use a #Define for this. Do I need to make a static Global variable inside my .h file outside of each Singleton class?
Operating System:
Render System:
Hello. Is there a proper way define a static global variable for a Singleton class derived from ogre Singleton? I want to be able to watch the global variables for any Singleton classes in Visual Studio but it seems like I cannot use a #Define for this. Do I need to make a static Global variable inside my .h file outside of each Singleton class?
Last edited by drwbns on Sat May 01, 2021 4:09 am, edited 1 time in total.
- dark_sylinc
- OGRE Team Member
- Posts: 5297
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1279
- Contact:
Re: Watch static global Singleton variable
What do you mean by 'watch'?
Cheers
Cheers
-
- Orc Shaman
- Posts: 788
- Joined: Mon Jan 18, 2010 6:06 pm
- Location: Costa Mesa, California
- x 24
- dark_sylinc
- OGRE Team Member
- Posts: 5297
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1279
- Contact:
Re: Watch static global Singleton variable
You should be able to watch it via:
Ogre::Root::msSingleton
Application::msSingleton
etc...
For every Ogre singleton you wish to watch (use the full namespace)
Ogre::Root::msSingleton
Application::msSingleton
etc...
For every Ogre singleton you wish to watch (use the full namespace)
-
- Orc Shaman
- Posts: 788
- Joined: Mon Jan 18, 2010 6:06 pm
- Location: Costa Mesa, California
- x 24
Re: Watch static global Singleton variable
That was it. Thanks Matias!