Michael Steinberg
09-03-2001, 07:17 AM
Hi there!
Basically I've got these formats stored in my image files (they are tga):
bgra
bgr
alpha or luminance
what I did so far was to convert them to RGB or RGBA as needed (all GL_UNSIGNED_BYTE). Now I read about BGR/BGRA format to be the fastest at least on nVidia hardware. Am I right that these formats are no part of the standard OpenGL 1.1 specification? They would help me as well, because I wouldn't have to reorder the tga data anymore.
Is specifying the internal format of any use, or will the driver chose the best anyway? Will I have to check for the vendor to use the best formats???
I'm a bit curious about which formats to use, especially because my OpenGL book gets outdated a bit (it's 1.0 with a special 1.1 chapter... but it's german) and it doesn't cover any extensions.
I'd be pleaseful for any insight!
Basically I've got these formats stored in my image files (they are tga):
bgra
bgr
alpha or luminance
what I did so far was to convert them to RGB or RGBA as needed (all GL_UNSIGNED_BYTE). Now I read about BGR/BGRA format to be the fastest at least on nVidia hardware. Am I right that these formats are no part of the standard OpenGL 1.1 specification? They would help me as well, because I wouldn't have to reorder the tga data anymore.
Is specifying the internal format of any use, or will the driver chose the best anyway? Will I have to check for the vendor to use the best formats???
I'm a bit curious about which formats to use, especially because my OpenGL book gets outdated a bit (it's 1.0 with a special 1.1 chapter... but it's german) and it doesn't cover any extensions.
I'd be pleaseful for any insight!