What is an SDL renderer?

后端 未结 2 646
醉酒成梦
醉酒成梦 2020-12-04 05:02

I\'m starting with SDL2 and having some trouble trying to understand what an SDL_Renderer is.

What is it? What does it do? What\'s the difference between SDL_Rendere

2条回答
  •  感动是毒
    2020-12-04 05:41

    Think of SDL_Window as physical pixels, and SDL_Renderer and a place to store settings/context.

    So you create a bunch of resources, and hang them off of the renderer; and then when its ready, you tell renderer to put it all together and send the results to the window.

提交回复
热议问题