Sharon Clay (src++at++rose.asd.sgi.com)
Tue, 30 Apr 1996 01:25:28 -0700
All you should need to do is to set the host memory format token in
glTexImge2d to be GL_ABGR_EXT. On the current IMPACT sw this can
have a 10-20% impact on loading performance of large textures (> 64x64),
but this is a known problem that should be fixed for the next release.
However, I'd say that whenever reasonable, one should opt for RGBA textures
and swap the bytes as they are read in since that is the OpenGL centric way.
Sample code to do the byte-reorder as data is read is in the source
code for the Inventor loader.
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (415) 933 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:49 PDT