If I make a GlobalShare class to pass around public static vars (like GraphicsDevice), do I need to initialize it somewhere?
-
-
Replying to @DaveVoyles
@DaveVoyles Probably makes most sense to initialize your "global" statics as early as you can.1 reply 0 retweets 0 likes -
Replying to @alphatrak
@alphatrak how can I do that? Do I initialize the whole class in Game le something?3 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles@alphatrak Doesn't matter when you initialize it so much as you initialize it before you use it. Put it where makes sense to you3 replies 0 retweets 0 likes
Replying to @KrisWD40
@KrisWD40 @alphatrak I mean I need it to initialize here my gameplayScreen, so I'm not ire of where to put it. When I pass GraphicsDevice...
10:52 AM - 7 Aug 2012
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.