Unapply fog...

New Message Reply Date view Thread view Subject view Author view

From: Yves Strube (czys++at++ocag.ch)
Date: 12/18/2001 02:04:03


Hi all,

How can I 'unapply' a light model or a fog object? I use pfFog::apply()
to apply a fog object m_pFog to the whole scene like this:

  // Override off so that changes are accepted
  pfOverride(PFSTATE_FOG | PFSTATE_ENFOG, PF_OFF);
        
  // Change fog properties
  pfEnable(PFEN_FOG);
  m_pFog->apply();
        
  // Override on to apply changes
  pfOverride(PFSTATE_FOG | PFSTATE_ENFOG, PF_ON);

Now I would like to delete the fog object but calling
pfDelete(m_pFog) does not succeed since the fog object m_pFog is still
referenced by someone (reference count 1).

So how do I get the reference count to zero? There is no
pfFog::unapply(). I also thought that calling pfApplyFog(NULL) might
help but this function seems not to be available when using the C++ fog
API?

Thanks for any answers,
Yves

-- 

Oerlikon-Contraves AG Yves Strube, S-EMI Birchstr. 155 Email: czys++at++ocag.ch CH-8050 Zurich Phone: +41 1 316 2675 Switzerland Fax: +41 1 316 2032


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Dec 18 2001 - 02:03:49 PST

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