Nav Link On

iPhone Dev Forums > General Development > OpenGL ES Development > Switch between OpenGL and Non-OpenGL Views

Reply

 

LinkBack Thread Tools Display Modes
Old 03-06-2010, 11:07 AM   #1 (permalink)
Junior Member
Default Avatar
 
Join Date: Feb 2010
Posts: 3
Default Switch between OpenGL and Non-OpenGL Views

Hi,

I am new into the iPhone Application Development.
In my application, I need to switch between an OpenGL and Non-OpenGL views frequently.

So, I have put a button on the OpenGL View and added a function to move to the second view.
In the second view, I have one more button with which I return to the first (OpenGL) view.
When this switch happens, the drawing on the OpenGL gets lost..

I verified that the DrawView function gets called correctly but it does not draw the view.
Can somebody tell me a possible problem and the solution for this..??


Thanks,
Dipen

Last edited by dipenvasoya; 03-08-2010 at 06:02 AM. Reason: Complete Information
dipenvasoya is offline   Reply With Quote
Old 06-05-2010, 07:40 PM   #2 (permalink)
Junior Member
Default Avatar
 
Join Date: Jun 2010
Posts: 3
Cool

OpenGL ES views are just UIViews. So you can change between them like anyother view.

One thing though, I recomend you destroy and recreate the framebuffer... arrays and any objects you use before switching back to OpenGL.. Else you will end up with a frame drop of 70% each time you get back into OpenGL.

Also.. If you need to ADDSUBVIEW you need to create it with a frame
If you just push a viewController it gets created via the initWithCoder method.
adriumroot is offline   Reply With Quote
Reply

iPhone Dev Forums > General Development > OpenGL ES Development


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC1