keybindings for keypad with pfuEvent ?

New Message Reply Date view Thread view Subject view Author view

Kowsik Guruswamy (kowsik++at++buggy.coryphaeus.com)
Sat, 3 Feb 1996 10:24:25 -0800


On Feb 3, 12:55am, Vijaykumar B wrote:
> Subject:
> Hi Performers,
>
> How can I delete the root node and add a new node to the Scene?
> If there is any example programs ?
> Thankx
> Vijay
>-- End of excerpt from Vijaykumar B

pfScene *scene;
pfNode *root;

  ...

  // You need to remove the root from the scene before deleting it, so that
  // its reference count is decremented.

  scene->removeChild (root);
  delete root;

  root = pfdLoadFile ("...");
  scene->addChild (root);

Hope that helps,

K.

-- 
kowsik++at++coryphaeus.com     | pirts suiboM a hguorht neeb sah txet sihT
http://www.coryphaeus.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:52:21 PDT

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