Files
panopainter/PanoPainter/GameViewController.h

39 lines
908 B
Objective-C

//
// GameViewController.h
// PanoPainter
//
// Created by Omar Mohamed Ali Mudhir on 07/05/17.
// Copyright © 2017 Omar Mohamed Ali Mudhir. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
#import "AppDelegate.h"
@interface GameView : GLKView
@end
@interface GameViewController : UIViewController<
UIKeyInput,
UIImagePickerControllerDelegate,
UINavigationControllerDelegate,
UIDocumentInteractionControllerDelegate
>
{
@public GameView* glview;
@public CADisplayLink *displayLink;
}
- (void)display_file:(std::string)filename;
- (void)reset_touch;
- (void)async_lock;
- (void)async_unlock;
- (void)async_swap;
- (void)pick_photo:(std::function<void(std::string)>) callback;
- (void)registerForKeyboardNotifications;
- (void)unregisterForKeyboardNotifications;
- (void)crash;
- (void)share_file:(NSString*)file_path;
- (void)tick;
- (void)render_loop;
@end