M
Michael
HI
int LoadGLTexture(char *pFileName, int TextureId)
{
SDL_Surface* lotto[TextureId]
lotto[TextureId] = IMG_Load(TextureFileName)
....
the above function worked but since i moved to Ubuntu i get libpng
error: Decompression error (not always but for most pngs)
Anyway following this:
http://www.gamedev.net/community/forums/topic.asp?topic_id=546917
I hope to fix that error by moving SDL_Surface out of this function
and pass the value as parameter?
So how to declare SDL_Surface and the LoadGLTexture function?
lotto is declared like: int lotto[5];
Many thanks
Michael
int LoadGLTexture(char *pFileName, int TextureId)
{
SDL_Surface* lotto[TextureId]
lotto[TextureId] = IMG_Load(TextureFileName)
....
the above function worked but since i moved to Ubuntu i get libpng
error: Decompression error (not always but for most pngs)
Anyway following this:
http://www.gamedev.net/community/forums/topic.asp?topic_id=546917
I hope to fix that error by moving SDL_Surface out of this function
and pass the value as parameter?
So how to declare SDL_Surface and the LoadGLTexture function?
lotto is declared like: int lotto[5];
Many thanks
Michael