Cleanup context handling and IOS API

This commit is contained in:
2017-04-28 00:22:35 -07:00
parent 373af248d1
commit 3bb88c77bf
10 changed files with 267 additions and 24 deletions

25
kraken_ios/KrakenView.h Normal file
View File

@@ -0,0 +1,25 @@
//
// KrakenView.h
// Kraken
//
// Created by Kearwood Gilbert on 2017-04-27.
// Copyright © 2017 Kearwood Software. All rights reserved.
//
class KRContext;
class KRScene;
@protocol KrakenViewDelegate <NSObject>
@optional
- (void)preRender:(KRContext *)context withDeltaTime: (CFTimeInterval)deltaTime;
- (void)postRender:(KRContext *)context withDeltaTime: (CFTimeInterval)deltaTime;
@end
@interface KrakenView : UIView
@property (nonatomic, weak) IBOutlet id <KrakenViewDelegate> delegate;
@property (nonatomic, assign) KRScene *scene;
- (void)startAnimation;
- (void)stopAnimation;
@end