资源预览内容
第1页 / 共1页
亲,该文档总共1页全部预览完了,如果喜欢就下载吧!
资源描述
SDL_FillRect函数SDL_FillRect函数:快速地以指定颜色填充方框。定义:int SDL_FillRect(SDL_Surface* dst, const SDL_Rect* rect, Uint32 color)例子:/* Declaring the surface. */SDL_Surface *s;/* Creating the surface. */s = SDL_CreateRGBSurface(0, width, height, 32, 0, 0, 0, 0);/* Filling the surface with red color. */SDL_FillRect(s, NULL, SDL_MapRGB(s-format, 255, 0, 0);跟老菜鸟学C+http:/edu.csdn.net/course/detail/2901
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号