Citation :
1.
SDL_Init(SDL_INIT_VIDEO);
2.
TTF_Init();
5.
Backscreen = IMG_Load("Backscreen.bmp" );
6.
SDL_DisplayFormat(Backscreen);
7.
3.
ecran = SDL_SetVideoMode( 0, 0, 32, SDL_HWSURFACE|SDL_FULLSCREEN);
4.
SDL_FillRect(ecran, NULL, SDL_MapRGB(ecran->format, 255, 0, 255));
7.
8.
SDL_BlitSurface(Backscreen, NULL, ecran, &PositionBackscreen);
9.
10.
11.
Fonte = TTF_OpenFont("verdana.ttf", 25);
12.
Text_Quitter = TTF_RenderText_Blended(Fonte, "Quitter", Rouge);
13.
14.
15.
16.
SDL_BlitSurface(Text_Quitter, NULL, ecran, &PositionQuitter);
17.
SDL_Flip(ecran);
|