#define LARGEUR_ECRAN 800
#define HAUTEUR_ECRAN 600

#define RENDER_INTRO            0
#define RENDER_MENU_PRINCIPAL   1
#define RENDER_CREDITS          2

Ctexte texte;

bool IsFullScreen = false;

int nbRender = RENDER_MENU_PRINCIPAL;
bool continuer = true;
SDL_Event event;
Uint32 nbFPS = 0, LastFPS = 0, FPS = 0, LargeurEcran = LARGEUR_ECRAN, HauteurEcran = HAUTEUR_ECRAN;

SDL_Surface *Screen = NULL;

void DessineFPS()
{
    static char txt[100];
    sprintf(txt, "FPS : %d", FPS);
    texte.DessineTexte(txt, 20, 5, 575, 255, 255, 255);

    nbFPS++;

    if(LastFPS + 1000 < SDL_GetTicks())
    {
        FPS = nbFPS;
        nbFPS = 0;
        LastFPS = SDL_GetTicks();
    }
}
