2015-08-15 04:04:56 +00:00
|
|
|
#ifndef IRENDERABLE_H
|
|
|
|
#define IRENDERABLE_H
|
|
|
|
|
|
|
|
#include "ERenderOptions.h"
|
|
|
|
#include <Common/CAABox.h>
|
|
|
|
#include <Common/types.h>
|
2015-09-27 22:02:53 +00:00
|
|
|
#include <Core/CFrustumPlanes.h>
|
2015-08-15 04:04:56 +00:00
|
|
|
|
|
|
|
class CRenderer;
|
|
|
|
|
|
|
|
class IRenderable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
IRenderable() {}
|
|
|
|
virtual ~IRenderable() {}
|
2015-09-27 22:02:53 +00:00
|
|
|
virtual void AddToRenderer(CRenderer *pRenderer, const CFrustumPlanes& frustum) = 0;
|
2015-08-16 04:29:37 +00:00
|
|
|
virtual void Draw(ERenderOptions options) {}
|
|
|
|
virtual void DrawAsset(ERenderOptions options, u32 asset) {}
|
2015-08-15 04:04:56 +00:00
|
|
|
virtual void DrawSelection() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IRENDERABLE_H
|