This site is no longer active and is available for archival purposes only. Registration and login is disabled.

surfaces and openGL


surfaces and openGL

Postby jrhee » Sep 18, 2009 @ 3:34am

I implemented a menu system with scrolling panes which makes heavy use of blitting surfaces onto one another before displaying on screen (e.g. menu items are drawn onto a surface with an offset, and the surface is then drawn on screen). I'm trying to make the switch to openGL to run on iPhone, but am running into the problem where the surface needs to be uploaded on each frame to reflect the change to scrolling position. Is there any way to work around this to have the updated surface displayed immediately without the performance impact of uploading to openGL on each frame?
jrhee
pm Member
 
Posts: 26
Joined: Apr 7, 2008 @ 4:28pm


Postby edge » Sep 24, 2009 @ 9:59am

Hi,

The alternative to uploading textures each frame is to use the render-to-texture feature on the iPhone.

To implement this you need the following API's:
glGenFramebuffersOES
glGenRenderbuffersOES
glRenderbufferStorageOES
glFramebufferRenderbufferOES
glBindFramebufferOES
glFramebufferTexture2DOES
glCheckFramebufferStatusOES
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron