41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
#include "mare.h"
|
|
|
|
namespace Render {
|
|
|
|
Drawable::Drawable(const size_t id, const Drawable* parent, const Mare* engine):
|
|
_id(id),
|
|
_parent(parent),
|
|
_engine(engine)
|
|
{
|
|
printf("Created Drawable id: %d\n", _id);
|
|
}
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//Point
|
|
DrawablePoint::DrawablePoint(const size_t id, const Drawable* parent, const Mare* engine, dim_t size):
|
|
Drawable(id, parent,engine),
|
|
_size(size)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//Line
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//Rectangle
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//Circle
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//Character
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//String
|
|
|
|
//--------+--------+--------+--------+--------+--------+--------+--------+--------+--------//
|
|
//Custom
|
|
|
|
} |