Re: Undocumented IRIS GL gl_sincos???

New Message Reply Date view Thread view Subject view Author view

Rob Mace (mace++at++lum.asd.sgi.com)
Tue, 31 Dec 1996 15:26:05 -0800


gl_sincos was a table driven sin/cos lookup function in iris gl. It's
prototype would be:

void gl_sincos(int angle_in_10th_of_a_degree, float *sin, float *cos);

You should replace it's use with pfSinCos(). Here is a #define that
can make the change, but I recomend actually making the change in your
code.

#define gl_sincos(a, s, c) pfSinCos((a)*0.1f, (s), (c))

pfSinCos() is both faster and more accurate then gl_sincos().

Rob Mace
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            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:54:13 PDT

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