Re: Undocumented IRIS GL gl_sincos???

New Message Reply Date view Thread view Subject view Author view

Steve Baker (steve++at++mred.bgm.link.com)
Thu, 2 Jan 97 08:15:01 -0500


I guess that to replace gl_sincos, you could use separate calls to sin() and cos(),
but if you are using Performer, then pfSinCos appears to be a direct plug-in
replacement. One thing to watch though is that some of those ancient IrisGL
routines don't use degrees for angular measurements. (eg the 'arc' routine
takes arguments in integer tenths of a degree).

Since the man page for gl_sincos appears to have vanished into the mists of time,
you'll probably have to determine the meaning of that first argument from context.
However, since the input angle (the first argument I guess) is an integer, it seems
likely that its in tenths of a degree.

So, the most likely fix is:-

    gl_sincos ( a, &b, &c ) ;

becomes

    pfSinCos ( (float) a / 10.0f, &b, &c ) ;

I hope this helps...

Steve Baker 817-619-1361 (Vox-Lab)
Hughes Training Inc. 817-619-8776 (Vox-Office/Vox-Mail)
2200 Arlington Downs Road 817-619-4028 (Fax)
Arlington, Texas. TX 76005-6171 Steve++at++MrEd.bgm.link.com (eMail)
http://www.hti.com (external) http://MrEd.bgm.link.com/staff/steve (intranet)
                                http://web2.airmail.net/sjbaker1 (external)

"You can't destroy the Earth - that's where I keep all my stuff!" - The Tick.

=======================================================================
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:16 PDT

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