2015-08-15 04:04:56 +00:00
|
|
|
#ifndef IRENDERABLE_H
|
|
|
|
#define IRENDERABLE_H
|
|
|
|
|
|
|
|
#include "ERenderOptions.h"
|
2015-11-25 21:37:34 +00:00
|
|
|
#include "SViewInfo.h"
|
2015-08-15 04:04:56 +00:00
|
|
|
#include <Common/types.h>
|
|
|
|
|
|
|
|
class CRenderer;
|
|
|
|
|
|
|
|
class IRenderable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
IRenderable() {}
|
|
|
|
virtual ~IRenderable() {}
|
2015-11-25 21:37:34 +00:00
|
|
|
virtual void AddToRenderer(CRenderer* pRenderer, const SViewInfo& ViewInfo) = 0;
|
2015-11-27 23:28:35 +00:00
|
|
|
virtual void Draw(ERenderOptions /*Options*/, int /*ComponentIndex*/, const SViewInfo& /*ViewInfo*/) {}
|
2015-08-15 04:04:56 +00:00
|
|
|
virtual void DrawSelection() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // IRENDERABLE_H
|