Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2004, 2:20:21 PM (21 years ago)
Author:
patrick
Message:

oroxnox/branches/parenting: implemented helperParent and made some tests with the opengl nurbs lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/null_parent.cc

    r3306 r3311  
    2222using namespace std;
    2323
     24NullParent* NullParent::singletonRef = 0;
     25
     26NullParent* NullParent::getInstance ()
     27{
     28  if( singletonRef == NULL)
     29    singletonRef = new NullParent ();
     30  return singletonRef;
     31}
    2432
    2533/**
     
    4856   \todo this deconstructor is not jet implemented - do it
    4957*/
    50 NullParent::~NullParent () {}
     58NullParent::~NullParent ()
     59{
     60  delete singletonRef;
     61  singletonRef = NULL;
     62}
    5163
    5264
Note: See TracChangeset for help on using the changeset viewer.