Does anyone have any texture loader or library (c++ and opengl)?

Member
Posts: 249
Joined: 2008.10
Post: #1
Hi friends!

Does anyone have any texture loader or library? Something like DEVIL or SOIL?

I tried to convert SOIL to iPhone but I was unsuccesful.
http://www.lonesock.net/soil.html

How do you load opengl textures using c++ on the iphone?

Thanks a lot.

EDIT: Well, SOIL works fine on the simulator (after removing DDS crap), but not on the iphone, it tells me does not find any texture. Any idea?
Quote this message in a reply
Member
Posts: 32
Joined: 2008.10
Post: #2
XCode will mangle PNG images to a different (non-standard) format, which is then stored on the device. This doesn't happen on the simulator. You can disable this by specifying the complie option IPHONE_OPTIMIZE_OPTIONS=-skip-PNGs. See the following link: http://discussions.apple.com/thread.jspa...6&tstart=0

Another problem that newcomers run into is file pathing. The actual texture file is stored in a different file path on your device. Again, search the archieves for more information about directory structure and image loading.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  opengl es strange 16bit texture scale problem spuckfunkel 6 9,605 Aug 14, 2011 10:44 PM
Last Post: headkaze
  SOIL image library problem or texture lib problem hippocoder 12 8,981 Mar 22, 2010 08:51 PM
Last Post: Frank C.
  Increasing brightness of texture in OpenGL dsedov 3 6,049 Jul 29, 2009 03:00 PM
Last Post: arekkusu
  how to draw to OpenGL texture Gillissie 7 7,181 Apr 24, 2009 06:35 AM
Last Post: AnotherJake
  OpenGl ES Texture Problems jhbau1000 4 4,223 Mar 24, 2009 02:41 PM
Last Post: AnotherJake