#ifndef __C_IRRLICHT_DEVICE_H_INCLUDED__
#define __C_IRRLICHT_DEVICE_H_INCLUDED__
+#include <stdbool.h>
+
#include "ICursorControl.h"
#include "IFileSystem.h"
#include "IGUIEnvironment.h"
irr_video_IVideoDriver*
irr_getVideoDriver(irr_IrrlichtDevice* device);
- int
+ bool
irr_isWindowActive(irr_IrrlichtDevice* device);
void
irr_setWindowCaption(irr_IrrlichtDevice* device,
const char* text);
- int
+ bool
irr_run(irr_IrrlichtDevice* device);
- int
+ bool
irr_drop(irr_IrrlichtDevice* device);
void
return ((irr::IrrlichtDevice*)device)->getVideoDriver();
}
- int
+ bool
irr_isWindowActive(irr_IrrlichtDevice* device)
{
- return ((irr::IrrlichtDevice*)device)->isWindowActive() ? 1 : 0;
+ return ((irr::IrrlichtDevice*)device)->isWindowActive();
}
void
((irr::IrrlichtDevice*)device)->setWindowCaption(wtext);
}
- int
+ bool
irr_run(irr_IrrlichtDevice* device)
{
- return ((irr::IrrlichtDevice*)device)->run() ? 1 : 0;
+ return ((irr::IrrlichtDevice*)device)->run();
}
- int
+ bool
irr_drop(irr_IrrlichtDevice* device)
{
- return ((irr::IrrlichtDevice*)device)->drop() ? 1 : 0;
+ return ((irr::IrrlichtDevice*)device)->drop();
}
void