need help with RotoZoom…------------------------------------------------------------------------------
SDL_Surface temp = *visuals->SpriteBMP[0];
SDL_Surface temp2 = rotozoomSurface(temp, 0, 2, 1);
SDL_Rect destinationRectangle;
destinationRectangle.x = 0;
destinationRectangle.y = 0;
SDL_BlitSurface(temp2, NULL, visuals->Screen, &destinationRectangle);
SDL_Flip(visuals->Screen);
ERRORS:
1>------ Build started: Project: LettersFall, Configuration: Release Win32
1>Compiling…
1>Game.cpp
1>.\Game.cpp(2054) : error C2664: ‘rotozoomSurface’ : cannot convert
parameter 1 from ‘SDL_Surface’ to 'SDL_Surface *'
1> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
1>.\Game.cpp(2063) : error C2664: ‘SDL_UpperBlit’ : cannot convert parameter
1 from ‘SDL_Surface’ to 'SDL_Surface *'
1> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
1>Build log was saved at "file://c:\Documents (file://c:\Documents) and
Settings\JeZ-l-Lee\My Documents\Visual Studio
2005\Projects\LettersFall\LettersFall\TetriBattle3_100Percent\Release\BuildLog.htm"
1>LettersFall - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========