摘要:
今天,我准备用SDL写一个小程序,用到了这个void LoadPic(const char * surfacedir ,SDL_Surface * surfacepic){ surfacetmp[0]=SDL_LoadBMP(surfacedir); if(surfacetmp[0] == NULL){Diary("读取图片错误");Quit();} surfacepic = SDL_DisplayFormat(surfacetmp[0]); if(surfacepic == NULL){Diary("转化图片错误");Quit();} SDL_Free 阅读全文