Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Fullscreen Window  (Read 3391 times)

0 Members and 1 Guest are viewing this topic.

EBrown

  • Newbie
  • *
  • Posts: 3
    • View Profile
Fullscreen Window
« on: August 25, 2010, 01:33:39 am »
Hello
How would I go about making SFML.NET fullscreen? I have a VERY specific resolution I want, and I want it fullscreen, as in no window borders, etc.

Any advice?

Thanks,
EBrown

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fullscreen Window
« Reply #1 on: August 25, 2010, 07:51:49 am »
If your resolution is "standard", you can pass the Fullscreen style to the constructor of the Window / RenderWindow classes.
Laurent Gomila - SFML developer

EBrown

  • Newbie
  • *
  • Posts: 3
    • View Profile
Fullscreen Window
« Reply #2 on: August 26, 2010, 01:59:25 am »
Quote from: "Laurent"
If your resolution is "standard", you can pass the Fullscreen style to the constructor of the Window / RenderWindow classes.

How so? Sorry if I sound like a noob, but this is the first time I have used SFML.NET.

Code: [Select]
           RenderWindow App = new RenderWindow(new VideoMode(800, 600, 32), "SFML.NET");
            App.SetFramerateLimit(30);


That is my initialization.

Thanks,
EBrown

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fullscreen Window
« Reply #3 on: August 26, 2010, 08:37:43 am »
You can look at the constructor of RenderWindow and/or the documentation, to know which additional parameters it takes.
Laurent Gomila - SFML developer

EBrown

  • Newbie
  • *
  • Posts: 3
    • View Profile
Fullscreen Window
« Reply #4 on: August 26, 2010, 11:35:52 pm »
Aha, I got it. Thank you. :)

Thanks,
EBrown

 

anything