Porting SDL + PSPGL game to PC
Porting SDL + PSPGL game to PC
Hi! Now,my game is complete,and I would like to port it to PC. I'm compiling it using all standard libs(SDL,SDL_image,SDL_gfx,SDL_mixer,GL,GLU) ,and source code is almost identical to psp version(without all psp functions,like callbacks,setting frequency and so on). The problem is,that my game compiles without any problems. And it loads without any problems. But texturing won't work - all objects in game are not textured. Any idea why it happens? All images needed are in good place,and program should quit if it encounters any problem with loading images - and it doesn't. Please help.
My projects:
PSPSnake
Mandelbrot Fractal Generator
Shoot4Fun
BlowUp!
PSPSnake
Mandelbrot Fractal Generator
Shoot4Fun
BlowUp!
What are you seeing? Shades of gray on your models?
Things to check:
glEnable(GL_TEXTURE_2D);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
Probably not these, since they just turn your models inside out:
glEnable/Disable(GL_CULL_FACE);
glCullFace(GL_BACK or GL_FRONT);
glFrontFace(GL_CW or GL_CCW);
Things to check:
glEnable(GL_TEXTURE_2D);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
Probably not these, since they just turn your models inside out:
glEnable/Disable(GL_CULL_FACE);
glCullFace(GL_BACK or GL_FRONT);
glFrontFace(GL_CW or GL_CCW);
(+[__]%)
No,they are just whiteSmong wrote:What are you seeing? Shades of gray on your models?
Code: Select all
Things to check:
glEnable(GL_TEXTURE_2D);
I don't use it,what is it doing?glEnableClientState(GL_TEXTURE_COORD_ARRAY);
No,I don't use them.Probably not these, since they just turn your models inside out:
glEnable/Disable(GL_CULL_FACE);
glCullFace(GL_BACK or GL_FRONT);
glFrontFace(GL_CW or GL_CCW);
My projects:
PSPSnake
Mandelbrot Fractal Generator
Shoot4Fun
BlowUp!
PSPSnake
Mandelbrot Fractal Generator
Shoot4Fun
BlowUp!