0
爲什麼這個簡單的代碼不工作?它很奇怪。SDL_DisplayFormat
string f = "pic.bmp";
SDL_Surface * loaded = NULL;
SDL_Surface * optimized = NULL;
loaded = SDL_LoadBMP(f.c_str());
if (loaded != NULL){
optimized = SDL_DisplayFormat(loaded); // errors here
文件編譯,但不會跑過去有
在調用之前是否調用了SDL_Init()? – 2011-05-02 16:56:54
解釋的東西 – eggplant 2011-05-02 17:04:02