#include "Object.h" #include "OysterMath.h" #include "DllInterfaces\GFXAPI.h" #include "CollisionManager.h" using namespace GameLogic; using namespace Oyster::Math; using namespace Oyster::Graphics::Model; using namespace Utility::DynamicMemory; using namespace Oyster::Physics; Object::Object(void) { model = new Model(); model = Oyster::Graphics::API::CreateModel(L"bth.obj"); ICustomBody* temp = rigidBody = API::Instance().CreateRigidBody().Release(); GameLogic::RefManager::getInstance()->AddMapping(*rigidBody, *this); } Object::~Object(void) { Oyster::Graphics::API::DeleteModel(model); } void Object::Render() { this->rigidBody->GetOrientation(model->WorldMatrix); Oyster::Graphics::API::RenderScene(model, 1); } Object::OBJECT_TYPE Object::GetType() { return this->type; }