X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FIGUIEnvironment.cpp;h=7f92386c26b5f5ad4786829cd79fc686ee481930;hb=3b8ff07b2c13c111e2b9eebaeaf64c7b17b29019;hp=b5bc9e1b97ab6306319081463cb645f473fc3d0e;hpb=26e0d2232734e893983975b68d3a760b147e8e8c;p=c-irrlicht.git diff --git a/src/IGUIEnvironment.cpp b/src/IGUIEnvironment.cpp index b5bc9e1..7f92386 100644 --- a/src/IGUIEnvironment.cpp +++ b/src/IGUIEnvironment.cpp @@ -24,14 +24,15 @@ #include "IGUIEnvironment.h" extern "C" { - void* irr_gui_IGUIEnvironment_addStaticText(void* guienv, - const char* text, - const irr_core_rect_s32* rectangle, - bool border, - bool wordWrap, - void* parent, - int32_t id, - bool fillBackground) + irr_gui_IGUIStaticText* + irr_gui_IGUIEnvironment_addStaticText(irr_gui_IGUIEnvironment* guienv, + const char* text, + const irr_core_rect_s32* rectangle, + bool border, + bool wordWrap, + irr_gui_IGUIElement* parent, + int32_t id, + bool fillBackground) { // Convert to wide char text wchar_t *wtext = (wchar_t*)malloc((strlen(text) + 1) * sizeof(wchar_t)); @@ -55,4 +56,10 @@ extern "C" { fillBackground); return staticText; } + + void + irr_gui_IGUIEnvironment_drawAll(irr_gui_IGUIEnvironment* guienv) + { + ((irr::gui::IGUIEnvironment*)guienv)->drawAll(); + } }