Wiki Page Content

Revision 1 as of 2010-01-11 06:35:13

Clear message

DRAFT

SDL_VideoInit

Use this function to initialize the video subsystem, optionally specifying a video driver.

Syntax

int SDL_VideoInit(const char* driver_name,
                  Uint32      flags)

Function Parameters

driver_name

initialize a specific driver by name, or NULL for the default video driver

flags

FIXME: Still needed?

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

This function initializes the video subsystem; setting up a connection to the window manager, etc, and determines the available display modes and pixel formats, but does not initialize a window or graphics mode.


CategoryAPI, CategoryVideo

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