src/video/uikit/SDL_uikitviewcontroller.h
author Kees Bakker <kees@tweeler.com>
Wed, 17 Aug 2011 23:26:58 +0200
changeset 5640 04b5b11985c8
child 6001 3ae3d1e58d59
permissions -rw-r--r--
Split off SDL_uikitviewcontroller in its own module
kees@5640
     1
/*
kees@5640
     2
 Simple DirectMedia Layer
kees@5640
     3
 Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
kees@5640
     4
 
kees@5640
     5
 This software is provided 'as-is', without any express or implied
kees@5640
     6
 warranty.  In no event will the authors be held liable for any damages
kees@5640
     7
 arising from the use of this software.
kees@5640
     8
 
kees@5640
     9
 Permission is granted to anyone to use this software for any purpose,
kees@5640
    10
 including commercial applications, and to alter it and redistribute it
kees@5640
    11
 freely, subject to the following restrictions:
kees@5640
    12
 
kees@5640
    13
 1. The origin of this software must not be misrepresented; you must not
kees@5640
    14
 claim that you wrote the original software. If you use this software
kees@5640
    15
 in a product, an acknowledgment in the product documentation would be
kees@5640
    16
 appreciated but is not required.
kees@5640
    17
 2. Altered source versions must be plainly marked as such, and must not be
kees@5640
    18
 misrepresented as being the original software.
kees@5640
    19
 3. This notice may not be removed or altered from any source distribution.
kees@5640
    20
 */
kees@5640
    21
kees@5640
    22
#import <UIKit/UIKit.h>
kees@5640
    23
kees@5640
    24
#include "SDL_video.h"
kees@5640
    25
kees@5640
    26
kees@5640
    27
@interface SDL_uikitviewcontroller : UIViewController {
kees@5640
    28
@private
kees@5640
    29
    SDL_Window *window;
kees@5640
    30
}
kees@5640
    31
- (id)initWithSDLWindow:(SDL_Window *)_window;
kees@5640
    32
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient;
kees@5640
    33
- (void)loadView;
kees@5640
    34
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
kees@5640
    35
@end