Setting flags=0 in SDL_CreateRenderer()

The SDL_CreateRenderer (http://wiki.libsdl.org/SDL_CreateRenderer) documentation mentions that the flags parameter can be either

0, or one or more SDL_RendererFlags (http://wiki.libsdl.org/SDL_RendererFlags) OR’d together
.

But what is the value of zero in this case? What does it default to?

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:

The SDL_CreateRenderer http://wiki.libsdl.org/SDL_CreateRendererdocumentation mentions that the
flags parameter can be either

Quote:

0, or one or more SDL_RendererFlagshttp://wiki.libsdl.org/SDL_RendererFlagsOR’d together

.

But what is the value of zero in this case? What does it default to?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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 <@Andre_D> wrote:

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:

The SDL_CreateRenderer http://wiki.libsdl.org/SDL_CreateRendererdocumentation mentions that the
flags parameter can be either

Quote:

0, or one or more SDL_RendererFlagshttp://wiki.libsdl.org/SDL_RendererFlagsOR’d together

.

But what is the value of zero in this case? What does it default to?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Great, thanks a lot for clarifying that.