Computer Science Canada Help binding PCX textures in openGL with SDL |
Author: | CodeMonkey2000 [ Tue Apr 08, 2008 4:21 pm ] | ||||
Post subject: | Help binding PCX textures in openGL with SDL | ||||
I'm trying to load pcx images into openGL, but I keep getting an error. I'm using SDL_Image to load my pcx file, and it has no problems loading it. But when I try to generate the 2D image in openGL I get a runtime error. It can load bmp and png with no problems. Here is where the program crashes (used a bunch of SDL_Delay(10000) to find it):
Here is the function in general. texture is a member of MD2Model.
|
Author: | asd [ Wed Apr 09, 2008 10:14 am ] |
Post subject: | RE:Help binding PCX textures in openGL with SDL |
how about that runtime error then? is your SDL_image library compiled with PCX support? |
Author: | CodeMonkey2000 [ Wed Apr 09, 2008 10:17 am ] |
Post subject: | RE:Help binding PCX textures in openGL with SDL |
The runtime error returns 3. SDL_Image supports pcx files, I displayed them before on SDL_SURFACE to makesure. |
Author: | md [ Wed Apr 09, 2008 10:37 am ] |
Post subject: | RE:Help binding PCX textures in openGL with SDL |
Run time error 3 doesn't really help much - you need to turn the number into an error message. |