I'm trying to load a png image with an alpha channel yet the alpha channel doesn't seem to load. It just shows a black background.
Here's the relevent code.
sf::Image charSprite;
charSprite.LoadFromFile("gorgon_idle_1.png");
charSprite.Bind();
glBegin(GL_QUADS);
glColor3ub(255,255,255);
glTexCoord2s(0,0);
glVertex2d(blah->x-35,blah->y-90);
glTexCoord2s(1,0);
glVertex2d(blah->x+36,blah->y-90);
glTexCoord2s(1,1);
glVertex2d(blah->x+36,blah->y);
glTexCoord2s(0,1);
glVertex2d(blah->x-35,blah->y);
glEnd();
glBindTexture(GL_TEXTURE_2D,NULL);
The image loads and draws fine but it doesn't have an alpha channel loaded for some reason...[/code]