cocoaTouch/SDLOverrides/SDL_uikitappdelegate.h
changeset 3463 23c50be687a9
parent 3385 361bd29293f4
child 3479 972ae3ec178a
equal deleted inserted replaced
3462:4b36933dce1d 3463:23c50be687a9
     1 /*
     1 /*
     2     SDL - Simple DirectMedia Layer
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2009 Sam Lantinga
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     4 
     5     This library is free software; you can redistribute it and/or
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     8     version 2.1 of the License, or (at your option) any later version.
    14 
    14 
    15     You should have received a copy of the GNU Lesser General Public
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    18 
    19     Sam Lantinga, mods for Hedgewars by Vittorio Giovara
    19     Sam Lantinga
    20     slouken@libsdl.org, vittorio.giovara@gmail.com
    20     slouken@libsdl.org
    21 */
    21 */
    22 
    22 
    23 #import <UIKit/UIKit.h>
    23 #import <UIKit/UIKit.h>
    24 #import "SDL_video.h"
    24 #import "SDL_uikitopenglview.h"
    25 
    25 
    26 @class MainMenuViewController;
    26 @class MainMenuViewController;
    27 @class OverlayViewController;
    27 @class OverlayViewController;
    28 
    28 
    29 @interface SDLUIKitDelegate:NSObject <UIApplicationDelegate> {
    29 @interface SDLUIKitDelegate:NSObject<UIApplicationDelegate> {
    30 	SDL_Window *window;
    30     MainMenuViewController *mainViewController;
    31 	UIWindow *uiwindow;
       
    32 
       
    33 	MainMenuViewController *mainViewController;
       
    34     BOOL isInGame;
    31     BOOL isInGame;
    35 }
    32 }
    36 
       
    37 @property (readwrite, assign) SDL_Window *window;
       
    38 @property (readwrite, retain) UIWindow *uiwindow;
       
    39 
       
    40 +(SDLUIKitDelegate *)sharedAppDelegate;
    33 +(SDLUIKitDelegate *)sharedAppDelegate;
    41 -(void) startSDLgame;
    34 -(void) startSDLgame;
    42 
    35 
    43 @end
    36 @end
    44 
    37