I´m using a simple GLKViewController
within Storyboard, which is working fine.
As I want its view to show up in front of another view, to place openGL objects above this other view, I instantiate the GLKViewController
programmatically within a second VC and add the GLKViewController´s
view as subview:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil];
AROpenGLVC *openGlVC = [storyboard instantiateViewControllerWithIdentifier:@"objects OpenGL Controller"];
[self.view addSubview:openGlVC.view];
Unfortunately, the result is a black view without my animated openGL objects.
I ran the debugger a it seems to go through all initializations aso.
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect
is called also,
but the - (void)update
method isn´t.
Must be something obvious, but I can´t see why though.