Danbias/Code/GameLogic/Object.cpp

41 lines
704 B
C++
Raw Normal View History

2013-11-19 18:35:35 +01:00
#include "Object.h"
2013-11-21 12:05:39 +01:00
#include "OysterMath.h"
2013-11-28 08:33:29 +01:00
#include "DllInterfaces\GFXAPI.h"
2013-11-21 12:05:39 +01:00
2013-11-19 18:35:35 +01:00
using namespace GameLogic;
2013-11-21 12:05:39 +01:00
using namespace Oyster::Math;
using namespace Oyster::Graphics::Render;
using namespace Utility::DynamicMemory;
2013-11-19 18:35:35 +01:00
Object::Object(void)
{
2013-11-28 08:33:29 +01:00
model = new Oyster::Graphics::Model::Model();
model = Oyster::Graphics::API::CreateModel(L"bth.obj");
2013-11-21 12:05:39 +01:00
2013-11-28 08:33:29 +01:00
model->WorldMatrix *= 0.1f;
model->WorldMatrix.m44 = 1.0f;
2013-11-19 18:35:35 +01:00
}
Object::~Object(void)
{
2013-11-28 08:33:29 +01:00
2013-11-21 12:05:39 +01:00
}
void Object::Render()
{
2013-11-28 08:33:29 +01:00
Oyster::Graphics::API::RenderScene(model,1);
}
void Object::Update()
{
//dummy implementation that will be overloaded if the other class implements it in a different way
2013-11-19 18:35:35 +01:00
}
2013-11-26 11:30:49 +01:00
Object::OBJECT_TYPE Object::GetType()
{
return this->type;
}