Cris Villarma (cvillarm++at++magellan.bgm.link.com)
Mon, 2 Dec 1996 08:43:29 -0600
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:04 PDT