2 Replies - 938 Views - Last Post: 03 April 2012 - 11:31 AM Rate Topic: -----

#1 kingawsm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 01-April 12

SDL - Rotation

Posted 03 April 2012 - 12:19 AM

Hi,
I was thinking of making space invaders clone. This involves rotating the ship and bullet; I want to know how I can rotate it using SDL and C++.

PS:
I have heard it is possible in OpenGL, but I would prefer to just use SDL.
Is This A Good Question/Topic? 0
  • +

Replies To: SDL - Rotation

#2 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 999
  • View blog
  • Posts: 4,177
  • Joined: 14-February 08

Re: SDL - Rotation

Posted 03 April 2012 - 02:09 AM

You cannot do rotation in SDL. There is a library called SDL_gfx but I wouldn't recommend it, it's ridiculously slow really.

As far as I know there are no rotations in space invaders.

Can you get away with using pre-rendered rotations in a sprite sheet? If not then OpenGL is your best and fastest bet :)
Was This Post Helpful? 0
  • +
  • -

#3 kingawsm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 01-April 12

Re: SDL - Rotation

Posted 03 April 2012 - 11:31 AM

OK thanks. For now I could use images that are already rotated. And maybe move on to OpenGL later for a more professional look.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1