Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2009-11-23 05:16:41
Size: 1008
Editor: SheenaSmith
Comment: format test
Revision 5 as of 2009-11-23 21:52:35
Size: 1040
Editor: SheenaSmith
Comment: include (almost working)
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:
<<Include(SDL_RendererFlags)>> <<Include(SDL_RendererFlags,,, from="fromhere", to="tohere")>>

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_RendererFlags 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

Include: Nothing found for "fromhere"!

Include: Nothing found for "tohere"!

SDL_RendererFlags

An enumeration of flags used when creating a rendering context.

Values

SDL_RENDERER_SOFTWARE

the renderer is a software fallback

SDL_RENDERER_ACCELERATED

the renderer uses hardware acceleration

SDL_RENDERER_PRESENTVSYNC

present is synchronized with the refresh rate

SDL_RENDERER_TARGETTEXTURE

the renderer supports rendering to texture

Note that providing no flags gives priority to available SDL_RENDERER_ACCELERATED renderers.

Code Examples

You can add your code example here

Remarks

You can add useful comments here

Related Structures

Related Functions


CategoryEnum, CategoryRender

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