mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-27 12:03:31 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user