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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-04-2010, 10:33 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 341
Default CCTexture2D - NSCoding

So I have implemented the NSCoding protocol into almost all of the classes except for CCTexture2D (Cocos2D), which is needed for the CCSprite class.

I know NSCoding support is on the roadmap for 1.0, but I would like it for a project.

I am stuck as to how I should implement NSCoding for CCTexture2D. Maybe encode a UIImage, but how would I get a UIImage from a texture?

I know nothing about OpenGL. Is it possible to get the buffer, get the data from the buffer, convert it to NSData, and make a UIImage from that or am I too hopeful?

Thanks.
__________________
17 year old nerd.
Send me a PM. Maybe I can help.
flamingliquid is offline   Reply With Quote
Reply

Bookmarks

Tags
cctexture2d, cocos2d, nscoding, opengl

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



» Advertisements
» Online Users: 251
18 members and 233 guests
ADY, Alsahir, beleg_1998, Dani77, e2applets, iDifferent, iph_s, JamesCahall, JasonR, mer10, Monstertaco, prchn4christ, Promo Dispenser, Robiwan, Rudy, smithdale87, spiderguy84, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,756
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:18 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0