C++ et SDL: Comment SDL_Rect travail exactement?

Je travaille sur quelques SDL trucs et j'ai rencontré quelques difficultés lors de la tentative de définir l'emplacement d'un chargé BMP.

Voici le 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
}

Il ne compile pas. Ce que je fais mal?

OriginalL'auteur Lemmons | 2010-10-14