XNA. Change resolution & set full screen

I am creating a game with the XNA framework and I needed to change the resolution for XNA game. So, that's how it's done: public class MyCoolGame : Microsoft.Xna.Framework.Game // Code... // GraphicsDeviceManager graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = Width; graphics.PreferredBackBufferHeight = Height; graphics.ApplyChanges(); Another very useful property is IsFullScreen - boolean variable, which sets game to full screen or not (do not forget to call graphics.ApplyChanges().).

Komentarai

Čia windows'am? :)

Ne tik. Tas pats kodas sukasi ir ant XBox ;)

Cia tipo ka reik daryt kad zaidimus per full screena rodytu? be pas mane nerodo ;/

Taip.
Žinok, tikrai veikia.

Komentuoti