프로그래밍/SDL
2007. 10. 16.
SDL로 BItmap 파일 읽기
#include #include #include SDL_Surface* MyLoadBMP( char* filename ); SDL_Event g_Event; SDL_Surface* g_pDS = NULL; SDL_Surface* g_pBitmap = NULL; int x = 320; int y = 240; int SDL_main( int argc, char* argv[] ) { if( SDL_Init(SDL_INIT_VIDEO) == -1 ) { fprintf( stderr, "Could not initialize SDL!\n" ); SDL_Quit(); return 0; } else fprintf( stdout, "SDL Initialized properly!\n" ); g_pDS = SDL_SetVi..