Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to set a custom size for window in monogame

graphics.PreferredBackBufferWidth = WIDTH;  // set this value to the desired width of your window
graphics.PreferredBackBufferHeight = HEIGHT;   // set this value to the desired height of your window
graphics.ApplyChanges();
Source by rbwhitaker.wikidot.com #
 
PREVIOUS NEXT
Tagged: #set #custom #size #window #monogame
ADD COMMENT
Topic
Name
7+5 =