Files
panopainter/PanoPainter/GameViewController.h
2019-07-12 10:47:58 +02:00

39 lines
962 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;
- (std::string)clipboard_get_string;
- (bool)clipboard_set_string:(const std::string&)s;
@end