pfApply calls

New Message Reply Date view Thread view Subject view Author view

deepa++at++tcsernet.tcs.ernet.in
Mon, 15 Apr 96 17:52:07 EDT


Dear Performer users,

I wonder if anyone can help me understand the following:

I am using Performer 1.2.

I use the following calls to open pipe and initialize it:

p = pfGetPipe(0);
pfInitPipe(p, OpenPipeLine);

If I use the following sequence of calls inside the OpenPipeLine procedure
there is no problem.

pfEnable(PFEN_LIGHTING);
pfApplyLModel(pfNewLModel(NULL));
pfApplyMtl(pfNewMtl(NULL));
pfLightOn(pfNewLight(NULL));

On the other hand, if I use the above sequence of calls sfter the call
pfInitPipe(p, NULL) in my main program, a core dump occurs. This happens only on the Onyx and not on the Indigo.

Is it necessary that these calls be used only in the pipe initializing
function?

Deepa Krishnan
Tata Consultancy Services
Bombay
e-mail : deepa++at++tcsernet.tcs.ernet.in


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

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