SDL
折角なのでSDLを触る。
なんというかとりあえず的なものなので酷いコード。
import SDL; void main(){ SDL_Init(SDL_INIT_SDL_Surface* screen; screen = SDL_SetVideoMode(120, 70, 8, SDL_SWSURFACE); SDL_Surface *image = SDL_LoadBMP("test.bmp"); SDL_BlitSurface(image, null, screen, null); SDL_UpdateRect(screen, 0, 0, 0, 0); SDL_FreeSurface(image); SDL_Event event; int quit = 0; while (!quit){ while (SDL_PollEvent(&event)){ if (event.type == SDL_QUIT){ quit = 1; } } } SDL_Quit(); }
未だにSDL良く分かってない。