OpenGL view in an iPad splitview
Posted
by dc
on Stack Overflow
See other posts from Stack Overflow
or by dc
Published on 2010-06-09T16:13:37Z
Indexed on
2010/06/09
16:22 UTC
Read the original article
Hit count: 704
I'm attempting to add an OpenGL view (such as the one given in Apple's sample code) as the detail view of an iPad's splitview but am running into issues. I've taken the sample code from the base OpenGL project and attempted to add it as a subview of my DetailViewController - ie EAGLView *glview = [[EAGLView alloc] initWithFrame:CGRectMake(0,0,100,100)]
but when I add it to the main view and call startAnimating
on it, nothing at all happens.
Any solutions to this? I have never worked with OpenGL before so perhaps I'm doing this all wrong.
© Stack Overflow or respective owner