本文介绍了有什么区别:SDL_FillRect VS SDL_RenderFillRect?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这两个函数有什么区别:
What is difference between these two functions:
SDL_FillRect VS SDL_RenderFillRect
推荐答案
SDL_FillRect()
操作在 SDL_Surface
完全 CPU 端,SDL_RenderFillRect()
在 SDL_Renderer
上运行,根据 SDL_Renderer 的创建方式,可能会或可能不会进行硬件加速.
SDL_FillRect()
operates on a SDL_Surface
completely CPU-side, SDL_RenderFillRect()
operates on a SDL_Renderer
and may or may not be hardware accelerated depending on how the SDL_Renderer was created.
这篇关于有什么区别:SDL_FillRect VS SDL_RenderFillRect?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!