SDL_FillRect函数.docx

上传人:A*** 文档编号:143356989 上传时间:2020-08-28 格式:DOCX 页数:1 大小:10.25KB
返回 下载 相关 举报
SDL_FillRect函数.docx_第1页
第1页 / 共1页
亲,该文档总共1页,全部预览完了,如果喜欢就下载吧!
资源描述

《SDL_FillRect函数.docx》由会员分享,可在线阅读,更多相关《SDL_FillRect函数.docx(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:/

展开阅读全文
相关资源
相关搜索

当前位置:首页 > IT计算机/网络 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号