/////////////////////////////////////////////////////////////////////// // Class : CDelayedInstance // Method : instantiate // Description : See object.h // Return Value : - // Comments : void CDelayedInstance::instantiate(CAttributes *a,CXform *x,CRendererContext *c) const { CXform *nx = new CXform(x); nx->concat(xform); if (a == NULL) a = attributes; c->addObject(new CDelayedInstance(a,nx,instance)); }
/////////////////////////////////////////////////////////////////////// // Class : CDelayedObject // Method : instantiate // Description : See object.h // Return Value : - // Comments : void CDelayedObject::instantiate(CAttributes *a,CXform *x,CRendererContext *c) const { CXform *nx = new CXform(x); nx->concat(xform); if (a == NULL) a = attributes; c->addObject(new CDelayedObject(a,nx,objectBmin,objectBmax,subdivisionFunction,freeFunction,data,dataRefCount)); }