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