Jump to content

  • Log In with Google      Sign In   
  • Create Account


SDL rotozoom Problem


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Captacha   Members   -  Reputation: 141

Like
0Likes
Like

Posted 09 January 2012 - 04:57 PM

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], I*20, I, 1);
	SDL_BlitSurface(Rotate[I + 1], NULL, Screen, &IMGRect);
	I++;


Sponsor:

#2 Captacha   Members   -  Reputation: 141

Like
0Likes
Like

Posted 09 January 2012 - 07:53 PM

Nevermind, Solved the problem on my own.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS