ios stuff
This commit is contained in:
parent
98b286d129
commit
6859c01851
File diff suppressed because it is too large
Load Diff
@ -9,6 +9,9 @@
|
|||||||
#import "ViewController.h"
|
#import "ViewController.h"
|
||||||
#import "ios_api.h"
|
#import "ios_api.h"
|
||||||
|
|
||||||
|
extern GLKView* defaultView; //Find this in IosApi.h/mm in Engine
|
||||||
|
|
||||||
|
|
||||||
@interface ViewController () {
|
@interface ViewController () {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +41,8 @@
|
|||||||
GLKView *view = (GLKView *)self.view;
|
GLKView *view = (GLKView *)self.view;
|
||||||
view.context = self.context;
|
view.context = self.context;
|
||||||
view.drawableDepthFormat = GLKViewDrawableDepthFormat24;
|
view.drawableDepthFormat = GLKViewDrawableDepthFormat24;
|
||||||
|
|
||||||
|
defaultView = (GLKView *)self.view;
|
||||||
|
|
||||||
[self setupGL];
|
[self setupGL];
|
||||||
}
|
}
|
||||||
@ -77,7 +81,10 @@
|
|||||||
[EAGLContext setCurrentContext:self.context];
|
[EAGLContext setCurrentContext:self.context];
|
||||||
|
|
||||||
AppInit();
|
AppInit();
|
||||||
}
|
|
||||||
|
GLKView *view = (GLKView *)self.view;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
- (void)tearDownGL
|
- (void)tearDownGL
|
||||||
{
|
{
|
||||||
|
@ -46,3 +46,4 @@ extern "C" void AppOnScroll(int shiftx, int shifty)
|
|||||||
App->OuterOnMove(vec2(shiftx, shifty));
|
App->OuterOnMove(vec2(shiftx, shifty));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user