Re: setColor for pfMaterial

New Message Reply Date view Thread view Subject view Author view

Prakash Mahesh (prakash++at++drawcomp.com)
Tue, 10 Dec 1996 17:07:53 -0500


Jean-Luc Dery wrote:

> > I was doing something like this:
> >
> > pfMaterial *mtl=new pfMaterial;
> >
> > mtl->setColor(PFMTL_DIFFUSE, 0.8f, 0.8f, 0.2f);
> > mtl->setColor(PFMTL_SPECULAR, 0.0f, 0.0f, 0.0f);
> > mtl->setColor(PFMTL_AMBIENT, 1.0f, 1.0f, 1.0f);
> > mtl->setColor(PFMTL_EMISSION, 1.0f, 1.0f, 1.0f);
> > .....
> > I get a Performer warning saying : Unknown color token x (where x is 1,
> > 2, 3 or 4 above)
> >
> > Am I doing something wrong?
> > Thanks for any help.
> > --

> The IRISGL token must be defined during compilation. This determines whether
> the irisgl.h or the opengl.h file is used.
>
> Try adding -DIRISGL to your compilation line.
>
> Hope this helps.
>
> Jean-Luc
>
> --
>

Yes, I am doing this while compiling. But still I am getting the
warning. And this is a runtime warning and not comiple time warning.

Thanks for your time. And help will be appreciated.

-- 
  Prakash Mahesh                                     
  prakash++at++drawcomp.com
=======================================================================
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:08 PDT

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