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

Author Topic: Scaling a Window?  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

NullEntity

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scaling a Window?
« on: June 23, 2011, 05:51:03 am »
I want to make a Chip-8 emulator. It has a 64x32 screen. What would be the best/easiest way to scale it up to a more sensible resolution?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Scaling a Window?
« Reply #1 on: June 23, 2011, 01:26:26 pm »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

NullEntity

  • Newbie
  • *
  • Posts: 9
    • View Profile
Scaling a Window?
« Reply #2 on: June 23, 2011, 04:47:07 pm »
The intention is to keep the pixely look. I meant something like is there a setting that can scale the 64x32 resolution to whatever size the window is. I'm new to SFML so the only way I can think of is drawing boxes for each pixel.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Scaling a Window?
« Reply #3 on: June 23, 2011, 04:49:14 pm »
Ah, then you can just use a sf::View and zoom it accordingly.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything