30 #include "util/log/logger.h"
31 #include "video/image.h"
32 #include "video/imagemanager.h"
34 #include "gui_image.h"
37 static Logger _log(LM_GUI);
39 GuiImage::GuiImage():
gcn::Image(), m_imgPtr() {
42 GuiImage::GuiImage(ImagePtr img):
gcn::Image(), m_imgPtr(img) {
46 GuiImage::~GuiImage() {
49 void GuiImage::free() {
50 ImageManager::instance()->free(m_imgPtr->getHandle());
53 int32_t GuiImage::getWidth()
const {
56 return m_imgPtr->getWidth();
59 int32_t GuiImage::getHeight()
const {
62 return m_imgPtr->getHeight();
65 gcn::Color GuiImage::getPixel(int32_t x, int32_t y) {
66 FL_PANIC(_log,
"GuiImage::getPixel, not implemented");
70 void GuiImage::putPixel(int32_t x, int32_t y,
const gcn::Color& color) {
71 FL_PANIC(_log,
"GuiImage::putPixel, not implemented");
74 void GuiImage::convertToDisplayFormat() {
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...