SFML community forums

Help => Graphics => Topic started by: slotdev on October 14, 2011, 06:40:56 pm

Title: Rotating every frame?
Post by: slotdev on October 14, 2011, 06:40:56 pm
Hi

I am working on a game that has to play on a 1360x768 monitor, which is physically rotated 90 degrees (so it's 768x1360, and the "top left" pixel is actually in the bottom left...). Of course, my game framework is set up for normal orientation...

Is there any way we can draw a frame as normal, but then rotate it automatically, without killing the CPU??

Thanks
Ed
Title: Rotating every frame?
Post by: Nexus on October 14, 2011, 07:05:23 pm
Use a rotated sf::View (SFML 2).
Title: Rotating every frame?
Post by: bananu7 on October 14, 2011, 07:06:41 pm
Code: [Select]
glRotatef(90.f, 0.f, 0.f, 1.f);