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 01-08-2010, 01:23 PM   #3 (permalink)
yarri
Registered Member
 
Join Date: Jan 2010
Posts: 4
yarri is on a distinguished road
Default

Quote:
Originally Posted by Johanovski View Post
I'm wondering if it's possible to take a screen image and then use it in OpenGL.
I use something like this to capture the EAGLview screenshot and stuff it into a texture:

UIGraphicsBeginImageContext(myView.bounds.size);
[myView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Texture2D *tex = [[Texture2D alloc] initWithImage:viewImage];


--yarri
yarri is offline   Reply With Quote
 

» Advertisements
» Online Users: 479
23 members and 456 guests
Abidullah, akacaj, Alex40, AngryOrange, Apptronics RBC, ArthurOff, Arty Tales, baja_yu, bignoggins, David-T, fanarin, gbenna, ilmman, jbro, kln, LooN3y, mini998, Nobbsy, padsoftware, revg, shigaugi, Sloshmonster, stephenmwatts
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,427
Threads: 94,024
Posts: 402,577
Top Poster: BrianSlick (7,978)
Welcome to our newest member, shakiraeb60
Powered by vBadvanced CMPS v3.1.0

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