Re: help upgrading from Performer 1.2 to Performer 2.2

New Message Reply Date view Thread view Subject view Author view

Rob Jenkins (robj++at++sgi.com)
Thu, 06 May 1999 06:32:14 -0700


texgen is an IrisGL call, you're hopefully linking against OpenGL
performer libs, the OpenGL equivalent is glTexGen, if you look in the
Insight book 'OpenGL Porting Guide' there's a section on OpenGL calls
and their IrisGL equivalents, or it's online at

http://techpubs.sgi.com:80/library/dynaweb_bin/ebt-bin/0640/nph-infosrch.cgi/infosrchtpl/SGI_Developer/OpenGL_Porting/++at++ebt-link?target=%25N%14_8766_START_RESTART_N%25

You should probably use the pfTexGen functions though and avoid the GL
dependancy altogether.

Cheers
Rob

Baez Elbert M NPRI wrote:>
> Hello:
> As part of my job I have been upgrading an old C Performer 1.2
> application to C++ Performer 2.2. While doing so I came across a function
> that is causing compiling errors. This function goes by the name of
> texgen().
> Here is a piece of the Performer 1.2 source code I have been trying
> to port to Performer 2.2.
>
> int PreDrawReflMap(pfTraverser *, void *)
> {
> texgen(TX_S, TG_SPHEREMAP, 0);
> texgen(TX_T, TG_SPHEREMAP, 0);
> texgen(TX_S, TG_ON, NULL);
> texgen(TX_T, TG_ON, NULL);
>
> return NULL;
> }
>
> And these are some of the error messages I have been getting from
> the C++ compiler (in Irix 6.5).
>
> "omni_effects.cc", line 1174: error(1020): identifier
> "texgen" is undefined
> texgen(TX_S, TG_SPHEREMAP, 0);
> ^
>
> "omni_effects.cc", line 1174: error(1020): identifier "TX_S"
> is undefined
> texgen(TX_S, TG_SPHEREMAP, 0);
> ^
>
> "omni_effects.cc", line 1174: error(1020): identifier
> "TG_SPHEREMAP" is
> undefined
> texgen(TX_S, TG_SPHEREMAP, 0);
> ^
>
> I did a "man texgen" and this is partly what it showed:
>
> NAME
> texgen - specify automatic generation of texture
> coordinates
>
> FORTRAN SPECIFICATION
> subroutine texgen(coord, mode, params)
> integer*4 coord, mode
> real params()
> .
> .
> .
>
> This function (texgen()) seems to be a Fortran call, but it was
> called from a Performer 1.2 application. My question is: How can I make a
> call to texgen() from Performer 2.2? Which is the correct way to do it?
>
> Can anyone please help me out with this issue? Any hints will be
> greatly appreciated!
>
> Thank you very much!,
> Elbert
>
> ________________________________
>
> Elbert M. Baez
> NUWC DIVISION NEWPORT
> Code 61, Bldg. 1320, Rm. 553
> 1176 Howell St.
> Newport, RI 02841-1708
> phone: (401) 832-5751
> fax : (401) 832-7440
> email: BaezEM++at++Npt.NUWC.Navy.Mil
> ________________________________
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
________________________________________________________________
Rob Jenkins	
SGI Graphics Consulting
Tel 0118 925 7621	
mailto:robj++at++sgi.com
http://www.sgi.co.uk

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu May 06 1999 - 07:06:25 PDT

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