Setting flags=0 in SDL_CreateRenderer() |
dandago
|
The SDL_CreateRenderer documentation mentions that the flags parameter can be either
But what is the value of zero in this case? What does it default to? |
|||||||||||||
|
Setting flags=0 in SDL_CreateRenderer() |
Andre D
Guest
|
Just took a look a the code, it basically says "give me a renderer with at-least these flags". If you have no flags set, it gives you the best available renderer. This list is something like:
Direct3d, Opengl, GLES2, GLES, DirectFB, PSP, and Software in that order. On Sat, Nov 16, 2013 at 5:59 PM, dandago wrote:
|
|||||||||||||
|
Setting flags=0 in SDL_CreateRenderer() |
Andre D
Guest
|
I added a note on the wiki, if anyone feels the wording is misleading feel free to change it:
I added: Note that providing no flags gives priority to available SDL_RENDERER_ACCELERATED renderers. On Sun, Nov 17, 2013 at 1:58 AM, Andre D wrote:
|
|||||||||||||||
|
dandago
|
Great, thanks a lot for clarifying that.
|
|||||||||||
|