Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-05-2008, 02:04 PM   #1 (permalink)
nuudles
New Member
 
Join Date: Oct 2008
Posts: 10
nuudles is on a distinguished road
Default Drawing to a Texture

I'm working on a project that I started with the CrashLander sample code as a base (meaning I use the same EAGLView to setup the OpenGL view). I've got scenes rendering on my project is progressing well, but I've gotten stuck with the matter of drawing a whole scene to a texture (with alpha blending and such). I'm trying to follow the instructions given here:

Drawing to a texture - steinsoft.net

However, if at all possible I'd like to load the textures at startup in the applicationDidFinishLoading function. If I attempt to draw to a texture in my renderScene function (meaning using the program's main OpenGL context to draw in and clearing it afterward), I have no problems, but I don't seem to know enough about OpenGL and the iPhone's implementation to move the texture creation to a different context. I've found many documents regarding this subject, including drawing offscreen, but I don't quite get it.

Could anyone give me a hand with rendering to a texture?
nuudles is offline   Reply With Quote
 

» Advertisements
» Online Users: 339
12 members and 327 guests
alexP, Gary OBrien, greeneye82, heshiming, jimmyon122, matador1978, Paul Slocum, PavelSea, revg, RickSDK, UconnAggie
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,552
Threads: 94,078
Posts: 402,731
Top Poster: BrianSlick (7,990)
Welcome to our newest member, veliata73
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:17 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.