Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2014-12-27 12:41:56
Size: 1549
Comment: Created page using content from header file.
Revision 2 as of 2016-05-12 20:35:07
Size: 1544
Comment: Fixed typo.
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
Returns 0 on success or -1 on failure; call [[SDL_GetError]]() to retrieve more more information on the failure. Returns 0 on success or -1 on failure; call [[SDL_GetError]]() to retrieve more information on the failure.

DRAFT

SDL_WinRTRunApp

Use this function to initialize and launch an SDL/WinRT application.

Syntax

int SDL_WinRTRunApp(MainFunction mainFunction
                    void*        reserved)

Function Parameters

mainFunction

the SDL app's C-style main(); see Remarks for details

reserved

reserved for future use; should be NULL

Return Value

Returns 0 on success or -1 on failure; call SDL_GetError() to retrieve more information on the failure.

Code Examples

You can add your code example here

Remarks

The function prototype for mainFunction is:

int MainFunction(int argc, char **argv)
  • where its parameter are:
  • argc

    the number of arguments

    argv

    an array of arguments

Version

This function is available since SDL 2.0.3.


CategoryAPI, CategoryInit

None: SDL_WinRTRunApp (last edited 2016-05-12 20:36:08 by PhilippWiesemann)

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