Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2013-02-18 09:34:31
Size: 1188
Editor: ChrisBush
Comment: create page
Revision 2 as of 2013-07-22 19:41:33
Size: 1319
Editor: axper
Comment: corrected vertical alignment of parameters
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
int SDL_CreateWindowAndRenderer(int width, int height, Uint32 window_flags,
                                SDL_Window **window, SDL_Renderer **renderer)
int SDL_CreateWindowAndRenderer(int            width,
                                int
height,
                               
Uint32         window_flags,
                                SDL_Window** window,
                               
SDL_Renderer** renderer)

DRAFT

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