Files
PlanetFleet/AbstractBitmapText.cpp
T
2021-10-19 20:15:01 +03:00

26 lines
700 B
C++

#include"AbstractBitmapText.h"
#include<IGUIFont.h>
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<s32> 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<s32>(pos.X, pos.Y, pos.X + 10, pos.Y + 10), *color);
}
}
}