Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2014-02-14 01:28:39
Size: 1254
Comment: Changed descriptions to lower case, see SGFunctions.
Revision 5 as of 2015-04-26 19:06:59
Size: 1254
Comment: Sorted related functions, see SGFunctions.
Deletions are marked like this. Additions are marked like this.
Line 46: Line 46:
 .[[SDL_CreateRenderer]]
Line 47: Line 48:
 .[[SDL_CreateRenderer]]

SDL_CreateWindowAndRenderer

Use this function to create a window and default renderer.

Syntax

int SDL_CreateWindowAndRenderer(int            width,
                                int            height,
                                Uint32         window_flags,
                                SDL_Window**   window,
                                SDL_Renderer** renderer)

Function Parameters

width

the width of the window

height

the height of the window

window_flags

the flags used to create the window (see SDL_CreateWindow())

window

a pointer filled with the window, or NULL on error

renderer

a pointer filled with the renderer, or NULL on error

Return Value

Returns 0 on success, or -1 on error; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryRender, CategoryVideo

None: SDL_CreateWindowAndRenderer (last edited 2015-11-18 20:47:21 by PhilippWiesemann)

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