@FreelanceGames I have a class (my paddle)that doesn't extend from game though, and needs to access the graphcs device
-
-
@DaveVoyles Why does the paddle need the graphics device? Seems like an odd thing to need there.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles simplistic approach use aggregation, that is, create a GraphicsDevice public var in your Class and set it on game loadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles I suppose is for render purposes, other option, create a static class create a public static var, assign to it, use anywhere -
@KaveluzaGames I always botch where I need to assign it. I manage to run into it not initializing early enough, or stack overflow
End of conversation
New conversation -
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.