ios stuff

This commit is contained in:
Vladislav Khorev 2013-01-28 09:46:37 +00:00
parent 98b286d129
commit 6859c01851
3 changed files with 566 additions and 558 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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
{ {

View File

@ -46,3 +46,4 @@ extern "C" void AppOnScroll(int shiftx, int shifty)
App->OuterOnMove(vec2(shiftx, shifty)); App->OuterOnMove(vec2(shiftx, shifty));
} }