sdl+opengl sdl_image to texture problem

Started by
13 comments, last by blackcloak 16 years, 5 months ago
Have you made sure than your texture dimensions are power-of-two? And that they aren't larger than whatever your card can handle? Just a thought.
Advertisement
thanks everyone for all their help. I finally got it to work. I used a lot of stuff from the epee engine so I thank the author for the simplest opengl code ever.

Right now I'm loading png's with an alpha layer of transparency. OpenGl seems to be ignoring the source alpha in the images. Anyone know how to turn that on?

thanks
glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glEnable ( GL_BLEND );
perfect. worked like a charm!
kev000 said:"I used a lot of stuff from the epee engine so I thank the author for the simplest opengl code ever."

Your are very welcome
from the author of the epee engine
Black CloakEpee Engine.

This topic is closed to new replies.

Advertisement