• Show log

    Commit

  • Hash : 9ac3bb70
    Author : Sam Lantinga
    Date : 2017-05-09T10:10:42

    Added support for mixing Qt and SDL on iOS
    
    You should call SDL_SetMainReady(), and then customize the QIOSApplicationDelegate like this, in your application code:
    
    /* Additional support for applications mixing Qt and SDL */
    @interface QIOSApplicationDelegate : UIResponder <UIApplicationDelegate>
    @end
    
    extern "C"
    {
    void SDL_OnApplicationWillResignActive();
    void SDL_OnApplicationDidEnterBackground();
    void SDL_OnApplicationWillEnterForeground();
    void SDL_OnApplicationDidBecomeActive();
    }
    
    @interface QIOSApplicationDelegate (SDL)
    
    - (void)applicationWillResignActive:(UIApplication*)application;
    - (void)applicationDidEnterBackground:(UIApplication*)application;
    - (void)applicationWillEnterForeground:(UIApplication*)application;
    - (void)applicationDidBecomeActive:(UIApplication*)application;
    
    @end
    
    @implementation QIOSApplicationDelegate (SDL)
    
    - (void)applicationWillResignActive:(UIApplication*)application
    {
        SDL_OnApplicationWillResignActive();
    }
    
    - (void)applicationDidEnterBackground:(UIApplication*)application
    {
        SDL_OnApplicationDidEnterBackground();
    }
    
    - (void)applicationWillEnterForeground:(UIApplication*)application
    {
        SDL_OnApplicationWillEnterForeground();
    }
    
    - (void)applicationDidBecomeActive:(UIApplication*)application
    {
        SDL_OnApplicationDidBecomeActive();
    }
    
    @end // QIOSApplicationDelegate
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    kc3_lang_org thodg_w www_kmx_io thodg_l thodg thodg_m
    Tags

  • README.txt

  •                          Simple DirectMedia Layer
    
                                      (SDL)
    
                                    Version 2.0
    
    ---
    https://www.libsdl.org/
    
    Simple DirectMedia Layer is a cross-platform development library designed
    to provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog
    and many Humble Bundle games.
    
    More extensive documentation is available in the docs directory, starting
    with README.md
    
    Enjoy!
    	Sam Lantinga				(slouken@libsdl.org)