RCIX
RCIX

Reputation: 39437

XNA Graphics Device Extension

I have a class that derives from XNA's GraphicsDevice, and i want to use it in my game. However, i can't quite figure out what i'm supposed to do to make this new graphics device replace the old one. Any suggestions?

Upvotes: 1

Views: 1119

Answers (2)

jasonh
jasonh

Reputation: 30303

It looks like you can subclass the GraphicsDeviceManager class, which would give you access to the GraphicsDeviceManager's GraphicsDevice class, which is publicly get-only. Here's an example MSDN article about subclassing the GraphicsDeviceManager class:

http://msdn.microsoft.com/en-us/library/bb195022.aspx

Upvotes: 1

Joel Martinez
Joel Martinez

Reputation: 47749

Check out the winforms sample to show how to manually create a graphics device and what settings you need to set: http://creators.xna.com/en-us/sample/winforms_series1

Upvotes: 0

Related Questions