Jump to content
  • Advertisement
Sign in to follow this  

SDL rotozoom Problem

This topic is 2839 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using rotozoom with SDL in C++. I'm just doing a little test write now. What my code is supposed to do is rotate each iteration of the SDL_Surfaces 20 degrees. What actually happens is my Images draw on top of each other at the same angle. Here's my code:

short I = 0;
SDL_Surface *Rotate[17];
Rotate[0] = IMG_Load("Image.png");
Rotate[I + 1] = rotozoomSurface(Rotate, I*20, I, 1);
SDL_BlitSurface(Rotate[I + 1], NULL, Screen, &IMGRect);

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!