30 #include "gui/guichan/base/gui_image.h"
31 #include "util/structures/rect.h"
32 #include "video/image.h"
34 #include "sdl_gui_graphics.h"
38 setTarget(SDL_GetVideoSurface());
41 void SdlGuiGraphics::drawImage(
const gcn::Image* image, int32_t srcX, int32_t srcY, int32_t dstX, int32_t dstY, int32_t width, int32_t height) {
42 const GuiImage* g_img =
dynamic_cast<const GuiImage*
>(image);
45 ImagePtr fifeimg = g_img->getFIFEImage();
46 const gcn::ClipRectangle& clip = getCurrentClipArea();
47 Rect rect(dstX, dstY, width, height);
48 rect.x += clip.xOffset;
49 rect.y += clip.yOffset;
virtual void render(const Rect &rect, uint8_t alpha=255, uint8_t const *rgb=0)=0
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...