object.cpp

00001 #include "object.h"
00002 #include "debug.h"
00003 
00004 using namespace irr;
00005 using namespace core;
00006 using namespace scene;
00007 using namespace video;
00008 
00009 extern Debug* dbg;
00010 
00011 Object::Object(IrrlichtDevice* d)
00012 {
00013     //ctor
00014     device = d;
00015     mesh = NULL;
00016     myId = -1;
00017 }
00018 
00019 Object::~Object()
00020 {
00021     //dtor
00022     if (mesh)
00023     {
00024         mesh->remove();
00025     }
00026     mesh = 0;
00027     device = 0;
00028 }
00029 
00030 void Object::setScale(f32 modelScale)
00031 {
00032     if (mesh)
00033     {
00034         mesh->setScale(vector3df(modelScale, modelScale, modelScale) );
00035     }
00036 }
00037 

Generated on Sun Dec 2 17:09:58 2007 for Swarm by  doxygen 1.4.6-NO