Loading textures from jpg/png file

Hello,can I load texture from jpg/png file directly by some OpenGL function?Or must I converet jpeg/png image to bitmap file first and then load as opengl texture?

Thanks for answers,Mage

OpenGL is not an image loading library it is an API for rendering polygons and, as such, does not support loading any image formats, whether JPG/PNG/BMP/TGA/whatever. It only supports uploading data from memory to the API.

Look into the IJG's JPEG implementation, LibPNG and perhaps check out Wotsit.org for any other formats you may want to support (TGA is quite a handy one).