SFML community forums

Help => Window => Topic started by: NullEntity on June 23, 2011, 05:51:03 am

Title: Scaling a Window?
Post by: NullEntity 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?
Title: Scaling a Window?
Post by: Nexus on June 23, 2011, 01:26:26 pm
There are many ways, see http://en.wikipedia.org/wiki/Pixel_art_scaling_algorithms
Title: Scaling a Window?
Post by: NullEntity 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.
Title: Scaling a Window?
Post by: Nexus on June 23, 2011, 04:49:14 pm
Ah, then you can just use a sf::View and zoom it accordingly.