《SDL_Rect结构.docx》由会员分享,可在线阅读,更多相关《SDL_Rect结构.docx(1页珍藏版)》请在金锄头文库上搜索。
SDL_Rect结构SDL_Rect结构:用这个结构来保护一个矩形的大小。intx左上角的x轴坐标inty左上角的y轴坐标intw矩形宽度inth矩形高度例子:srcrect.x = 0;srcrect.y = 0;srcrect.w = 32;srcrect.h = 32;dstrect.x = 640/2;dstrect.y = 480/2;dstrect.w = 32;dstrect.h = 32;SDL_BlitSurface(src, &srcrect, dst, &dstrect);跟老菜鸟学pythonhttp:/