views:

111

answers:

1

Hello!

I need to use openGL in NDK, and I need to load and use some images (PNG), and maybe other files. These files are stored in res\drawable, res\drawable-hdpi, but I cannot access them with fopen()... There is a way to do this? Can somebody give me a piece of code for my problem, because it is quite urgent.

Thank you very much, and Merry Christmas, Tibi.

A: 

Try using perror (or strerror) to determine why fopen is failing.

tkerwin