pfHighlight

New Message Reply Date view Thread view Subject view Author view

Cris Villarma (cvillarm++at++magellan.bgm.link.com)
Mon, 2 Dec 1996 08:43:29 -0600


I'm wanting to use pfHighlight to dynamically color
an aircraft *.flt model. My code compiles but bombs out
during run-time when it reaches I call pfGSetHlight.

Here's some of my code:
-----------------------

pfGeoSet *models[50];
pfHighlight *hlight[50];

void
init (void)
{
  int index;

  for (index=1; index<50; index++)
  {
    hlight[index] = pfNewHlight(NULL);
    if (hlight[index])
    {
      pfHlightMode (hlight[index], PFHL_FILL);
      pfHlightColor(hlight[index], PFHL_BGCOLOR, 1.0f, 1.0f, 1.0f);
      pfHlightAlpha(hlight[index], 0.5);
    }
  }

  for (index=1; index<50; index++)
  {
    models[index] = (pfGeoSet *) pfdLoadFile("model.flt");
    if (models[index])
      pfGSetHlight(models[index],hlight[index]);
  }
}

Cris Villarma
cvillarm++at++magellan.bgm.link.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:04 PDT

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