2013-12-10 11:26:18 +01:00
|
|
|
#ifndef DANBIAS_CLIENT_COBJECT_H
|
|
|
|
#define DANBIAS_CLIENT_COBJECT_H
|
2013-12-09 12:01:36 +01:00
|
|
|
#include "DllInterfaces/GFXAPI.h"
|
2013-12-09 11:05:47 +01:00
|
|
|
namespace DanBias
|
|
|
|
{
|
|
|
|
namespace Client
|
|
|
|
{
|
2013-12-09 12:01:36 +01:00
|
|
|
|
|
|
|
struct ModelInitData
|
|
|
|
{
|
2013-12-19 11:58:42 +01:00
|
|
|
int id;
|
2013-12-09 12:01:36 +01:00
|
|
|
std::wstring modelPath;
|
|
|
|
Oyster::Math::Float4x4 world;
|
|
|
|
bool visible;
|
|
|
|
};
|
|
|
|
|
2013-12-09 11:05:47 +01:00
|
|
|
class C_Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2013-12-09 12:01:36 +01:00
|
|
|
virtual void Init(ModelInitData modelInit) = 0;
|
2013-12-16 11:08:10 +01:00
|
|
|
virtual void setPos(Oyster::Math::Float4x4 world) = 0;
|
2013-12-09 11:05:47 +01:00
|
|
|
|
|
|
|
virtual void Render() = 0;
|
|
|
|
virtual void Release() = 0;
|
2013-12-19 11:58:42 +01:00
|
|
|
virtual int GetId() = 0;
|
2013-12-09 11:05:47 +01:00
|
|
|
};};};
|
2013-12-10 11:26:18 +01:00
|
|
|
#endif
|