I have an image buffer that has 4 components (RGBA):
trying to map onto a quad with:Code :RGBA_buf = new unsigned char[image_width * image_height * 4];
what am I supposed to pass as the 7th parameter, because with GL_RGBA the image data appears corrupted... I can have it display normally with GL_RGB, but I can't get figure out how to get this to work w/ the alpha values...Code :glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, image_width, image_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, RGBA_buf );
Any ideas?



