+
+ bool
+ irr_isWindowActive(irr_IrrlichtDevice* device)
+ {
+ return ((irr::IrrlichtDevice*)device)->isWindowActive();
+ }
+
+ void
+ irr_setWindowCaption(irr_IrrlichtDevice* device,
+ const char* text)
+ {
+ wchar_t *wtext = (wchar_t*)malloc((strlen(text) + 1) * sizeof(wchar_t));
+ mbstowcs(wtext, text, strlen(text) + 1);
+ ((irr::IrrlichtDevice*)device)->setWindowCaption(wtext);
+ }
+
+ bool
+ irr_run(irr_IrrlichtDevice* device)
+ {
+ return ((irr::IrrlichtDevice*)device)->run();
+ }
+
+ void
+ irr_yield(irr_IrrlichtDevice* device)
+ {
+ ((irr::IrrlichtDevice*)device)->yield();
+ }
+