mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-27 03:43:30 +00:00
26 lines
639 B
C++
26 lines
639 B
C++
#include"AbstractImage.h"
|
|
|
|
using namespace irr::video;
|
|
using namespace irr::core;
|
|
using namespace game::core;
|
|
|
|
namespace game
|
|
{
|
|
namespace gui{
|
|
AbstractImage::AbstractImage(GameManager *gM, ITexture *image, vector2d<s32> pos, vector2d<s32> size) {
|
|
gameManager = gM;
|
|
this->image = image;
|
|
this->pos = pos;
|
|
this->size = size;
|
|
}
|
|
|
|
AbstractImage::~AbstractImage() {
|
|
}
|
|
|
|
void AbstractImage::update() {
|
|
irr::video::IVideoDriver *driver = gameManager->getDevice()->getVideoDriver();
|
|
driver->draw2DImage(image, pos);
|
|
}
|
|
}
|
|
}
|