Possible Duplicate:
How can I load 8 bit bmp with OpenGL?
I need to load lots of images as many as possible, and then play them as animation. Therefore I want to minimize the size of each image.
My question is if I load a jpeg image file, will my machine store it as in bmp format? Currently, I am using OpenGL to load bmp images (around 3.5 MB each). 600 bmp files are already exceeding my memory. How can I load more, say 2 thousand.
You machine will keep it in memory as raw pixels, except if you’re using a compressed texture format, which is however very different from JPEG.
File formats are meaningless for the hardware and OpenGL.
You shouldn’t. If you’re playing an animation, load the image when it’s due to show, then delete it afterwards. In the case of OpenGL you should use
glTexSubImage2Dto replace the contents of a texture object.