include/SDL_main.h
changeset 8480 733f78caa9cb
parent 8477 ad08f0d710f3
child 8500 f25ef28d61e8
equal deleted inserted replaced
8479:f92a250b4a3f 8480:733f78caa9cb
    36    the arguments to your main function.
    36    the arguments to your main function.
    37 
    37 
    38    If you provide your own WinMain(), you may define SDL_MAIN_HANDLED
    38    If you provide your own WinMain(), you may define SDL_MAIN_HANDLED
    39  */
    39  */
    40 #define SDL_MAIN_AVAILABLE
    40 #define SDL_MAIN_AVAILABLE
       
    41 
       
    42 #elif defined(__WINRT__)
       
    43 /* On Windows RT, SDL provides a main function that initializes CoreApplication,
       
    44    creating an instance of IFrameworkView in the process.
       
    45 
       
    46    Please note that #include'ing SDL_main.h is not enough to get a main()
       
    47    function working.  The file, src/main/windowsrt/SDL_WinRT_main.cpp, or a copy
       
    48    of it, must be compiled into the app itself.
       
    49 */
       
    50 #define SDL_MAIN_NEEDED
    41 
    51 
    42 #elif defined(__IPHONEOS__)
    52 #elif defined(__IPHONEOS__)
    43 /* On iOS SDL provides a main function that creates an application delegate
    53 /* On iOS SDL provides a main function that creates an application delegate
    44    and starts the iOS application run loop.
    54    and starts the iOS application run loop.
    45 
    55