Re: Unknown color token for pfLightColor in Performer 2.0

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Tue, 30 Jan 1996 13:14:48 -0500


On Jan 30, 5:03pm, Daniela Rainer wrote:
> Subject: Unknown color token for pfLightColor in Performer 2.0
> Hi,
>
> I have a problem with pfLightColor:
>
> if I use
>
> pfLightColor(lt, PFLT_DIFFUSE, 1.0f, 1.0f, 1.0f);
> pfLightColor(lt, PFLT_AMBIENT, 0.4f, 0.4f, 0.4f);
>
> I get the following warning at runtime
>
> PF Warning/Usage: pfLightColor() Unknown color token 4609.
> PF Warning/Usage: pfLightColor() Unknown color token 4608.
>
> Thanks for any help
>
> Daniela
>
> --
> Daniela Rainer
> rainer++at++rus.uni-stuttgart.de
>
>-- End of excerpt from Daniela Rainer

That's because you must be using IRIS GL and IRISGL needs to be defined
somewhere when your sources are compiled and linked with the IRIS GL
librairies:

cc -c -DIRISGL foo.c

Maybe this should have been mentionned in the programming guide ;).

-- 
     ___/     |       ___/ Nicolas Gauvin	   e-mail: nicolas++at++cae.ca
    /       / |      /     Software Developper	   voice: (514) 341-2000 x2275
   /       /  |     __/    CAE Electronics Ltd.    fax:   (514) 340-5496
  /       ___ |    /	   8585 Cote De Liesse, P.O. Box 1800
_____/  _/   _| _____/     Saint-Laurent, Quebec, Canada, H4L-4X4

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:52:18 PDT

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