pfTexture::getImage format with OpenGL?

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 21 Jun 1996 11:48:12 -0400


I would like to know how the texture array returned by pfTexture::getImage
is stored when compiled with OpenGL. I know that the components are
reversed (RGBA instead of ABGR in IRISGL) but is the array byte packed
the same way as IRISGL?

In the case of IRISGL I understand that Performer store the array
of 8 bits components like this:

for 1 component:

0 1 2 3
-------
I I I x
I I I x
I I I x

for 2 components:

0 1 2 3
-------
A I A I
A I x x
A I A I

for 3 components:

0 1 2 3
-------
B G R B
G R B G
R x x x

for 4 components:

0 1 2 3
-------
A B G R
A B G R

Nicolas Gauvin CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:02 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.