摘要: 今天,我准备用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 阅读全文
posted @ 2011-10-04 11:39 改着名儿玩 阅读(1571) 评论(3) 推荐(0) 编辑