Hello there, I'm working on some SDL stuff and I've run into some trouble when trying to set the location of a loaded BMP.
Here's the code.
while(event.type != SDL_QUIT) //The game loop that does everything
{
SDL_Rect *location;
location = SDL_Rect(600,400,0,0);
SDL_PollEvent(&event); //This "polls" the event
//Drawing stuff goes here
SDL_BlitSurface(zombie, NULL, buffer, &location);
SDL_Flip(buffer); //Draw
}
It won't compile. What am I doing wrong?