1
Fork 0

Adds size/orientation support

This commit is contained in:
Joshua Moerman 2016-11-15 15:24:34 +01:00
parent 1b674f891e
commit 1ef23adcb9

View file

@ -37,6 +37,7 @@
self.preferredFramesPerSecond = 60;
[self setupGL];
game.windowSize = self.view.bounds.size;
}
- (void)dealloc{
@ -64,6 +65,10 @@
// Dispose of any resources that can be recreated.
}
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation{
game.windowSize = self.view.bounds.size;
}
- (void)setupGL{
[EAGLContext setCurrentContext:self.context];
game = [[Game alloc] init];