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

Author Topic: Rotating every frame?  (Read 1469 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Rotating every frame?
« 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
SFML 2.1

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Rotating every frame?
« Reply #1 on: October 14, 2011, 07:05:23 pm »
Use a rotated sf::View (SFML 2).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

bananu7

  • Newbie
  • *
  • Posts: 25
    • View Profile
Rotating every frame?
« Reply #2 on: October 14, 2011, 07:06:41 pm »
Code: [Select]
glRotatef(90.f, 0.f, 0.f, 1.f);

 

anything