Jūs esateŽurnalai / Ernestas Kardzys's blog / XNA. Change resolution & set full screen

XNA. Change resolution & set full screen


ParašėErnestas Kardzys - 2009 Balandžio 28

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().).

Taip.
Žinok, tikrai veikia.

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

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

Čia windows'am? :)

Skelbti naują komentarą

Šio laukelio turinys bus laikomas privatus ir nerodomas viešai.
  • Web puslapiu adresai ir el. pašto adresai automatiškai tampa nuorodomis.
  • Leidžiamos HTML žymės: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linijos ir paragrafai atskiriami automatiškai
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

Daugiau informacijos apie teksto formatavimą

CAPTCHA
Šis klausimas yra skirtas įsitikinti, jog jūs esate žmogus, ir sustabdyti automatinį šlamšto siuntimą.
16 + 3 =
Išspręskite šią paprastą matematinę užduotį ir įveskite atsakymą. Pvz., jei užduotis yra 1+3, įveskite 4.