Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Scaling a Window?
Print
Pages: [
1
]
Author
Topic: Scaling a Window? (Read 2249 times)
0 Members and 1 Guest are viewing this topic.
NullEntity
Newbie
Posts: 9
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?
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
Scaling a Window?
«
Reply #1 on:
June 23, 2011, 01:26:26 pm »
There are many ways, see
http://en.wikipedia.org/wiki/Pixel_art_scaling_algorithms
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
NullEntity
Newbie
Posts: 9
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.
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
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.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Scaling a Window?
anything