简体   繁体   中英

How do the source and destination rectangles work in the SDL function SDL_RenderCopy

I have been confused on this issue ever since I started using renderers. I have done some testing on them but I have not found anything that helps me. Any help given is great

基本上,源矩形只是一个选择工具,从 png 或某个文件的 x,y = 0,0(可编辑)开始,直到 png 文件的 w,h(某个数字,某个数字)(也可编辑)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM