为什么要优化?是24位图和32位图的原因,如果你知道的更详细
请告诉我*/
//Free the old image
//那个loadedImage已经不需要了,还占用着内存要free掉
SDL_FreeSurface(loadedImage);
}
return optimizedImage;
}
/*
function name: showImg
parameter:SDL_Surface *source,int x,int y,int width,int
height,SDL_Surface *destination
parameter note:source is the handler of image
x is the left of image
y is the top of image
width is the width of image
height is the height of image
destination is screen handler
return:void
function:show image to display memory
*/
/*
评论6
最新资源