Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania bez odpowiedzi
Viewing all articles
Browse latest Browse all 21942

SDL błąd SDL_Window was not declared i this scope.

$
0
0

Witam serdecznie!

Ostatnio zacząłem programować w c++ za pomocą biblioteki SDL.

Zacząłem pisać ten kod:

#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_mixer.h>
#include <SDL/SDL_ttf.h>
#include <string>
#include <windows.h>

int main (int argc, char *args[])
{
    SDL_Event exit;
    SDL_Init(SDL_INIT_EVERYTHING);
    SDL_Window *screen1=NULL;
    SDL_Surface *hello=NULL;
    screen1= SDL_SetVideoMode(600,480,32,SDL_SWSURFACE);
    int frame=1;
    for(;;)
    {
        while(SDL_PollEvent(&exit))
        {
            if(exit.type==SDL_QUIT)
            {
                return 0;
            }
        }
        if(frame==1)
        {
            hello = SDL_LoadBMP("cb.bmp");
            SDL_BlitSurface(hello,NULL,screen,NULL);
            SDL_Flip(screen);
            SDL_FreeSurface(hello);
        }
    }
}

i mi wyskoczyło takie coś: Error: SDL_Window was not declared in this scope.

Nie wiem czemu mi niedziała.

Jakby można to proszę o odp. na moje pytanie. Serdecznie pozdrawiam!


Viewing all articles
Browse latest Browse all 21942

Trending Articles


TRX Antek AVT - 2310 ver 2,0


Автовишка HAULOTTE HA 16 SPX


POTANIACZ


Zrób Sam - rocznik 1985 [PDF] [PL]


Maxgear opinie


BMW E61 2.5d błąd 43E2 - klapa gasząca a DPF


Eveline ➤ Matowe pomadki Velvet Matt Lipstick 500, 506, 5007


Auta / Cars (2006) PLDUB.BRRip.480p.XviD.AC3-LTN / DUBBING PL


Peugeot 508 problem z elektroniką


AŚ Jelenia Góra