forked from OGRECave/ogre-imgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OgreImgui.i
45 lines (39 loc) · 871 Bytes
/
OgreImgui.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
%module(directors="1") OgreImgui
%{
#include "imgui.h"
#include "Ogre.h"
#include "OgreTrays.h"
#include "OgreAdvancedRenderControls.h"
#include "OgreCameraMan.h"
#include "ImguiManager.h"
%}
%include std_string.i
%include exception.i
%include stdint.i
%include typemaps.i
%import "Ogre.i"
%import "Bites/OgreBites.i"
/// Imgui
// ignore va list methods
%ignore ImGui::TextV;
%ignore ImGui::TextColoredV;
%ignore ImGui::TextDisabledV;
%ignore ImGui::TextWrappedV;
%ignore ImGui::LabelTextV;
%ignore ImGui::BulletTextV;
%ignore ImGui::TreeNodeV;
%ignore ImGui::TreeNodeExV;
%ignore ImGui::SetTooltipV;
%ignore ImGuiTextBuffer::appendfv;
%apply bool* INOUT { bool* p_open };
%apply float* INOUT { float* v };
%apply int* INOUT { int* v };
%include "imgui.h"
#ifdef SWIGPYTHON
%pythoncode
%{
__version__ = IMGUI_VERSION
%}
#endif
/// Ogre
%include "ImguiManager.h"