United States (English)
Canada (English)
Canada (Français)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
日本 (日本語)
Forums
Hi,
Visitor
Sign In
Home
Quick Start Guide
News
Membership
Games
Games Catalog
Submit Game
Review Game
Playtest Game
Creators
My Profile
My Business
Community
Forums
Community Spotlight
Community Resources
Education
Getting Started
Education Catalog
Starter Kits
Utilities
Academia
Developer Talk Series
Resources
FAQ
Partners
Download
Feedback
Press Site
Meet the Team
community forums
XNA Community Forums
»
General
»
Game Design
»
game window size
More Search Options
|
My Discussions
|
Active Topics
|
Not Read
Page 1 of 1 (3 items)
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
game window size
Last post 11/18/2009 9:30 AM by
TheHomicidal
. 2 replies.
11/17/2009 11:33 PM
daGman
(116)
premium membership
Posts
59
game window size
Reply
Quote
how do i set the size of the game window?
11/17/2009 11:56 PM
In reply to
Craig Martin
(7501)
Posts
3,734
Re: game window size
Reply
Quote
set graphics.PreferredBackBufferWidth/Height in your Game constructor.
Game hobbyist hell-bent on coding a diabolical Matrix
11/18/2009 9:30 AM
In reply to
TheHomicidal
(22)
Posts
22
Re: game window size
Reply
Quote
Like this:
public
Game1()
{
graphics =
new
GraphicsDeviceManager(
this
);
graphics.PreferredBackBufferHeight = 600;
graphics.PreferredBackBufferWidth = 1024;
Content.RootDirectory =
"Content"
;
}
A forum dedicated to creating XNA games for PC: http://www.xna-pc.tk
Page 1 of 1 (3 items)
Previous
Next
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
Privacy Statement
Code of Conduct
Feedback