The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Setting flags=0 in SDL_CreateRenderer()
dandago


Joined: 30 Aug 2013
Posts: 34
The SDL_CreateRenderer documentation mentions that the flags parameter can be either
Quote:
0, or one or more SDL_RendererFlags OR'd together
.

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:
Quote:
The SDL_CreateRenderer documentation mentions that the flags parameter can be either


Quote:

0, or one or more SDL_RendererFlags OR'd together


.

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


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

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:
Quote:
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:


Quote:
The SDL_CreateRenderer documentation mentions that the flags parameter can be either


Quote:

0, or one or more SDL_RendererFlags OR'd together


.

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




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




dandago


Joined: 30 Aug 2013
Posts: 34
Great, thanks a lot for clarifying that.