mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
26 lines
700 B
C++
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);
|
|
}
|
|
}
|
|
}
|