Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2009-11-19 17:32:22
Size: 940
Editor: SheenaSmith
Comment: create page, add content
Revision 2 as of 2009-11-23 05:14:07
Size: 1024
Editor: SheenaSmith
Comment: content added
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
||'''flags'''||[[SDL_RendererFlags]]|| ||'''flags'''||0, or one or more [[SDL_Renderer]] flags OR'd together; see [[#Remarks|Remarks]] for details||
Line 30: Line 30:
You can add useful comments here Flags used when creating a rendering context.

SDL_CreateRenderer

Use this function to create and make active a 2D rendering context for a window.

Syntax

int SDL_CreateRenderer(SDL_WindowID windowID,
                       int          index,
                       Uint32       flags)

Function Parameters

windowID

the window used for rendering

index

the index of the rendering driver to initialize, or -1 to initialize the first one supporting the requested flags

flags

0, or one or more SDL_Renderer flags OR'd together; see Remarks for details

Return Value

0 on success, -1 if there was an error creating the renderer

Code Examples

You can add your code example here

Remarks

Flags used when creating a rendering context.

None: SDL_CreateRenderer (last edited 2014-11-11 02:06:24 by RyanGordon)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit