PDA

View Full Version : OpenGL only supports BMP?



the dead tree
08-30-2004, 02:37 PM
I'm pretty new at programming and just got into OpenGL, but from what I understand if you want other graphic formats you will need other libraries.
Is this true?
If so, my real question is why? Sounds odd.

no-one
08-30-2004, 03:08 PM
technically OpenGL natively supports NO "File" formats of any kind, helper libraries such as Glaux offer BMP support.

the dead tree
08-30-2004, 04:15 PM
Uhm, I see, thanks :)

Vicious
08-30-2004, 04:17 PM
Actually just using opengl by itself, you could write code to load any kind of image file.

http://nehe.gamedev.net

has a few tutorials on image loading

linuxdude
08-30-2004, 04:28 PM
or wotsit

the dead tree
08-30-2004, 07:45 PM
I'll get there someday :p

Perspective
08-30-2004, 08:31 PM
Actually just using opengl by itself, you could write code to load any kind of image file.

http://nehe.gamedev.net

has a few tutorials on image loading


actually OpenGL has nothing to do with file loading in those situations.. its all just regular file IO.

Vicious
08-30-2004, 09:15 PM
Yes but the tutorials show how to load the file and use it with OpenGL.