does opengl provide some functions to load tga ?

does opengl provide some functions to load tga pictures ?

No, but there are image libraries out there that you can use, or you could write your own loader. The .tga format is very simple to parse, and its not much more difficult to handle compressed images. If you go to www.wotsit.org you can find the .tga specification.

Old GLman

No, you have to use your own routine of someone elses.
I have a TGA loader that I use on my website.
http://www.angelfire.com/linux/nexusone/index.html

Originally posted by jirkamelich:
does opengl provide some functions to load tga pictures ?

Originally posted by jirkamelich:
does opengl provide some functions to load tga pictures ?

Yeah, they are called fopen() and fread(). Funny thing though–they moved the documentation for these functions from the “OpenGL” section over to the “C runtime library” section of the help file, for some odd reason.

If you use GLFW instead of GLUT, win32 API, MFC, glX or whatever, you can load TGA files (either to local memory or directly to texture memory) with a simple function call.

www.imagelib.org devIL, by far the BEST image loader, with native opengl style syntax i have found yet.