Re: Color token

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++bvr.co.il)
Mon, 25 Mar 1996 07:09:33 +0000


> Why is performer 2.0 giving me this warning "unknown color token 4609 or 4610
> every
> time I call pfLSourceColor(...,PFLT_DIFFUSEor PFLT_AMBIENT?
> I have seen this warning in other calls too.

Let me guess : You are linking with IrisGL libraries, while compiling without
the -DIRISGL compilation flag. Performer/pr.h includes irisgl.h or opengl.h,
depending on that compilation constant (the default is OpenGL). If you follow
the PFLT_DIFFUSE constant in opengl.h, you'll see that they use the GL_DIFFUSE
constant from GL/gl.h, which is 4610.
To make a (very) long story short, you should define IRISGL in all your
compilations (unless you want to use OpenGL). To keep my makefile simple, I
have an environment variable - PF_GL, which is initialized to either IRISGL or
OPENGL at login, and is used by the makefiles.

Ran

-- 
 __                                  | Ran Yakir
 /_)  _  __   \  / _   / o __        | Graphics App. Chief Engineer
/ )_ (_(_) )   \/ (_(_/<_(_)(        | BVR Technologies Ltd.
              _/                     |   
-------------------------------------+--------------------------------
Phone :                              | E-mail : rany++at++bvr.co.il
  Work : 972-3-5715671               |
  Res. : 972-9-989974                |
Fax    : 972-3-5715668               |

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:34 PDT

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