Difference between revisions of "Screen Settings"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "=Fullscreen= It is very easy to turn on fullscreen in monogame: _graphics.IsFullScreen = true; _graphics.ApplyChanges(); Obviously it is also easy to turn off: _graphic...")
 
 
Line 1: Line 1:
 +
This page documents changing the resolution and using fullscreen. You can also set the [[Screen Brightness]] using this page.
 +
 
=Fullscreen=
 
=Fullscreen=
  

Latest revision as of 07:49, 31 May 2024

This page documents changing the resolution and using fullscreen. You can also set the Screen Brightness using this page.

Fullscreen

It is very easy to turn on fullscreen in monogame:

_graphics.IsFullScreen = true;
_graphics.ApplyChanges();

Obviously it is also easy to turn off:

_graphics.IsFullScreen = false;
_graphics.ApplyChanges();

You could even just toggle it instead:

_graphics.IsFullScreen = !_graphics.IsFullScreen ;
_graphics.ApplyChanges();

Setting Resolution

You can set the width and height of the main window in pixels:

_graphics.PreferredBackBufferWidth = 1024;
_graphics.PreferredBackBufferHeight = 600;
_graphics.ApplyChanges();

You can therefore also use this in fullscreen as well.