#ifndef __C_E_DRIVER_TYPES_H_INCLUDED__
#define __C_E_DRIVER_TYPES_H_INCLUDED__
-enum irr_video_E_DRIVER_TYPE
+typedef enum
{
irr_video_EDT_NULL,
irr_video_EDT_SOFTWARE,
irr_video_EDT_DIRECT3D9,
irr_video_EDT_OPENGL,
irr_video_EDT_COUNT
- };
+ } irr_video_E_DRIVER_TYPE;
#endif
#ifndef __C_E_MATERIAL_FLAGS_H_INCLUDED__
#define __C_E_MATERIAL_FLAGS_H_INCLUDED__
-enum irr_video_E_MATERIAL_FLAG
+typedef enum
{
irr_video_EMF_WIREFRAME = 0x1,
irr_video_EMF_POINTCLOUD = 0x2,
irr_video_EMF_USE_MIP_MAPS = 0x20000,
irr_video_EMF_BLEND_OPERATION = 0x40000,
irr_video_EMF_POLYGON_OFFSET = 0x80000
- };
+ } irr_video_E_MATERIAL_FLAG;
#endif
#ifndef __C_I_ANIMATED_MESH_MD2_H_INCLUDED__
#define __C_I_ANIMATED_MESH_MD2_H_INCLUDED__
-enum irr_scene_EMD2_ANIMATION_TYPE
+typedef enum
{
irr_scene_EMAT_STAND = 0,
irr_scene_EMAT_RUN,
irr_scene_EMAT_DEATH_FALLBACKSLOW,
irr_scene_EMAT_BOOM,
irr_scene_EMAT_COUNT
- };
+ } irr_scene_EMD2_ANIMATION_TYPE;
#endif
void
irr_scene_IAnimatedMeshSceneNode_setMaterialFlag(irr_scene_IAnimatedMeshSceneNode* node,
irr_video_E_MATERIAL_FLAG flag,
- bool newvalue);
+ int newvalue);
void
irr_scene_IAnimatedMeshSceneNode_setMaterialTexture(irr_scene_IAnimatedMeshSceneNode* node,
- u_int32_t textureLayer,
+ unsigned int textureLayer,
irr_video_ITexture* texture);
- bool
+ int
irr_scene_IAnimatedMeshSceneNode_setMD2Animation(irr_scene_IAnimatedMeshSceneNode* node,
irr_scene_EMD2_ANIMATION_TYPE anim);
irr_gui_IGUIEnvironment_addStaticText(irr_gui_IGUIEnvironment* guienv,
const char* text,
const irr_core_rect_s32* rectangle,
- bool border,
- bool wordWrap,
+ int border,
+ int wordWrap,
irr_gui_IGUIElement* parent,
- int32_t id,
- bool fillBackground);
+ int id,
+ int fillBackground);
void
irr_gui_IGUIEnvironment_drawAll(irr_gui_IGUIEnvironment* guienv);
irr_scene_ISceneManager_addAnimatedMeshSceneNode(irr_scene_ISceneManager* smgr,
irr_scene_IAnimatedMesh* mesh,
irr_scene_ISceneNode* parent,
- int32_t id,
+ int id,
irr_core_vector3df* position,
irr_core_vector3df* rotation,
irr_core_vector3df* scale,
- bool alsoAddIfMeshPointerZero);
+ int alsoAddIfMeshPointerZero);
irr_scene_ICameraSceneNode*
irr_scene_ISceneManager_addCameraSceneNode(irr_scene_ISceneManager* smgr,
irr_scene_ISceneNode* parent,
irr_core_vector3df* position,
irr_core_vector3df* lookat,
- int32_t id,
- bool makeActive);
+ int id,
+ int makeActive);
void
irr_scene_ISceneManager_drawAll(irr_scene_ISceneManager* smgr);
extern "C" {
#endif
- bool
+ int
irr_video_IVideoDriver_beginScene(irr_video_IVideoDriver* driver,
- bool backBuffer,
- bool zBuffer,
+ int backBuffer,
+ int zBuffer,
const irr_video_SColor* color,
irr_video_SExposedVideoData* videoData,
const irr_core_rect_s32* sourceRect);
- bool
+ int
irr_video_IVideoDriver_endScene(irr_video_IVideoDriver* driver);
irr_video_ITexture*
typedef struct
{
- u_int32_t a;
- u_int32_t r;
- u_int32_t g;
- u_int32_t b;
+ unsigned int a;
+ unsigned int r;
+ unsigned int g;
+ unsigned int b;
} irr_video_SColor;
#endif
irr_IrrlichtDevice*
irr_createDevice(irr_video_E_DRIVER_TYPE deviceType,
const irr_core_dimension2d_u32* windowSize,
- u_int32_t bits,
- bool fullscreen,
- bool stencilbuffer,
- bool vsync);
+ unsigned int bits,
+ int fullscreen,
+ int stencilbuffer,
+ int vsync);
#ifdef __cplusplus
}
typedef struct
{
- u_int32_t width;
- u_int32_t height;
+ unsigned int width;
+ unsigned int height;
} irr_core_dimension2d_u32;
#endif
typedef struct
{
- int32_t x;
- int32_t y;
- int32_t x2;
- int32_t y2;
+ int x;
+ int y;
+ int x2;
+ int y2;
} irr_core_rect_s32;
#endif
typedef struct
{
- float_t x;
- float_t y;
- float_t z;
+ float x;
+ float y;
+ float z;
} irr_core_vector3df;
#endif
irr_IrrlichtDevice*
irr_createDevice(irr_video_E_DRIVER_TYPE deviceType,
const irr_core_dimension2d_u32* windowSize,
- u_int32_t bits,
- bool fullscreen,
- bool stencilbuffer,
- bool vsync)
+ unsigned int bits,
+ int fullscreen,
+ int stencilbuffer,
+ int vsync)
{
irr::core::dimension2d<irr::u32> wsize = \
irr::core::dimension2d<irr::u32>(windowSize->width,
void
irr_scene_IAnimatedMeshSceneNode_setMaterialFlag(irr_scene_IAnimatedMeshSceneNode* node,
irr_video_E_MATERIAL_FLAG flag,
- bool newvalue)
+ int newvalue)
{
((irr::scene::IAnimatedMeshSceneNode*)node)->setMaterialFlag((irr::video::E_MATERIAL_FLAG)flag,
newvalue);
void
irr_scene_IAnimatedMeshSceneNode_setMaterialTexture(irr_scene_IAnimatedMeshSceneNode* node,
- u_int32_t textureLayer,
+ unsigned int textureLayer,
irr_video_ITexture* texture)
{
((irr::scene::IAnimatedMeshSceneNode*)node)->setMaterialTexture(textureLayer,
(irr::video::ITexture*)texture);
}
- bool
+ int
irr_scene_IAnimatedMeshSceneNode_setMD2Animation(irr_scene_IAnimatedMeshSceneNode* node,
irr_scene_EMD2_ANIMATION_TYPE anim)
{
irr_gui_IGUIEnvironment_addStaticText(irr_gui_IGUIEnvironment* guienv,
const char* text,
const irr_core_rect_s32* rectangle,
- bool border,
- bool wordWrap,
+ int border,
+ int wordWrap,
irr_gui_IGUIElement* parent,
- int32_t id,
- bool fillBackground)
+ int id,
+ int fillBackground)
{
// Convert to wide char text
wchar_t *wtext = (wchar_t*)malloc((strlen(text) + 1) * sizeof(wchar_t));
irr_scene_ISceneManager_addAnimatedMeshSceneNode(irr_scene_ISceneManager* smgr,
irr_scene_IAnimatedMesh* mesh,
irr_scene_ISceneNode* parent,
- int32_t id,
+ int id,
irr_core_vector3df* position,
irr_core_vector3df* rotation,
irr_core_vector3df* scale,
- bool alsoAddIfMeshPointerZero)
+ int alsoAddIfMeshPointerZero)
{
const irr::core::vector3df& iPosition = irr::core::vector3df(position->x,
position->y,
irr_scene_ISceneNode* parent,
irr_core_vector3df* position,
irr_core_vector3df* lookat,
- int32_t id,
- bool makeActive)
+ int id,
+ int makeActive)
{
const irr::core::vector3df& iPosition = irr::core::vector3df(position->x,
position->y,
#include "IVideoDriver.h"
extern "C" {
- bool
+ int
irr_video_IVideoDriver_beginScene(irr_video_IVideoDriver* driver,
- bool backBuffer,
- bool zBuffer,
+ int backBuffer,
+ int zBuffer,
const irr_video_SColor* color,
irr_video_SExposedVideoData* videoData,
const irr_core_rect_s32* sourceRect)
sourceRect != NULL ? &rect : 0);
}
- bool
+ int
irr_video_IVideoDriver_endScene(irr_video_IVideoDriver* driver)
{
return ((irr::video::IVideoDriver*)driver)->endScene();