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

Author Topic: How do I get the resolution of a screen?  (Read 3795 times)

0 Members and 1 Guest are viewing this topic.

Weeve

  • Jr. Member
  • **
  • Posts: 87
  • C++ Programmer (Intermediate), 3D Artist (Skilled)
    • View Profile
    • Email
How do I get the resolution of a screen?
« on: October 21, 2011, 08:30:43 pm »
how do I get the pixel size of a screen? im making a full screen game based on a 32X32 pixel grid. I need to be able to find the centre, and set the background sprite's size accuratley
Long live rapid project development! -- Kestrel3D Game-Engine nearing completion

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML / OS X developer

Weeve

  • Jr. Member
  • **
  • Posts: 87
  • C++ Programmer (Intermediate), 3D Artist (Skilled)
    • View Profile
    • Email
How do I get the resolution of a screen?
« Reply #2 on: October 22, 2011, 12:19:02 am »
Thankyou! :D  I vote for re-naming of "desktop mode" to "screen mode"
Long live rapid project development! -- Kestrel3D Game-Engine nearing completion

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
How do I get the resolution of a screen?
« Reply #3 on: October 22, 2011, 07:38:57 am »
Quote
I vote for re-naming of "desktop mode" to "screen mode"

Depends what the "screen" is. To me, it refers to the physical monitor more than the OS desktop.
Laurent Gomila - SFML developer