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

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.

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
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:

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 14,395 Aug 14, 2011 10:44 PM
Last Post: headkaze
  SOIL image library problem or texture lib problem hippocoder 12 14,263 Mar 22, 2010 08:51 PM
Last Post: Frank C.
  Increasing brightness of texture in OpenGL dsedov 3 9,166 Jul 29, 2009 03:00 PM
Last Post: arekkusu
  how to draw to OpenGL texture Gillissie 7 10,350 Apr 24, 2009 06:35 AM
Last Post: AnotherJake
  OpenGl ES Texture Problems jhbau1000 4 5,811 Mar 24, 2009 02:41 PM
Last Post: AnotherJake