#include"AbstractBitmapText.h" #include using namespace irr::core; using namespace irr::video; using namespace irr::gui; using namespace game::core; namespace game{ namespace gui{ AbstractBitmapText::AbstractBitmapText(GameManager *gM, stringw text, vector2d pos, IGUIFont *font) { gameManager = gM; this->text = text; this->pos = pos; this->font = font; color = new SColor(255, 255, 255, 255); } AbstractBitmapText::~AbstractBitmapText() {} void AbstractBitmapText::update() { font->draw(text, rect(pos.X, pos.Y, pos.X + 10, pos.Y + 10), *color); } } }