2015-04-09 17:01:10 +02:00
# cimgui [](https://travis-ci.org/Extrawurst/cimgui)
2015-04-08 09:04:53 +02:00
2017-05-30 07:15:24 +02:00

2015-04-08 09:04:53 +02:00
2018-06-20 15:52:33 +02:00
This is a thin c-api wrapper programmatically generated for the excellent C++ intermediate gui [imgui ](https://github.com/ocornut/imgui ).
All functions are programmatically wrapped except contructors, destructors and ImVector.(Unless someone find a use case for them)
2018-06-20 19:49:09 +02:00
Generated files are: cimgui.cpp, cimgui.h for C compilation. Also for helping in bindings creation, definitions.lua with function definitions information and structs_and_enums.lua.
2015-04-09 15:45:19 +02:00
This library is intended as a intermediate layer to be able to use imgui from other languages that can interface with C (like D - see [D-binding ](https://github.com/Extrawurst/DerelictImgui ))
2015-04-21 23:56:15 +02:00
Notes:
2018-06-20 15:52:33 +02:00
* currently this wrapper is based on version [1.62WIP of imgui ](https://github.com/ocornut/imgui/ )
2015-04-21 23:56:15 +02:00
* does not compile with pure C compiler yet (for writing bindings in languages that are able to use C-ABI it is enough though, see D-bindings)
2015-04-09 15:45:19 +02:00
2018-06-20 20:12:49 +02:00
# auto binding generation
* update imgui folder to the version you desire.
* run vimgui/generator/generator.bat (or make a .sh version and please PR) with gcc and Lua on your PATH.
2015-04-09 15:45:19 +02:00
# usage
* clone
2015-07-25 20:44:44 +02:00
* make using makefile on linux/osx
2015-07-25 20:20:33 +02:00
* use whatever method is in ImGui c++ namespace in the original [imgui.h ](https://github.com/ocornut/imgui/blob/master/imgui.h ) by prepending `ig`
2015-04-09 15:45:19 +02:00
* methods have the same parameter list and return values (where possible)
2017-06-03 01:48:55 +02:00
# example bindings based on cimgui
* [DerelictImgui ](https://github.com/Extrawurst/DerelictImgui )
* [ImGui.NET ](https://github.com/mellinoe/ImGui.NET )
2018-01-16 00:04:54 +01:00
* [ImGuiCS ](https://github.com/0x0ade/ImGuiCS )
2017-06-03 01:48:55 +02:00
* [imgui-rs ](https://github.com/Gekkio/imgui-rs )
2017-08-31 17:10:30 +02:00
* [imgui-pas ](https://github.com/dpethes/imgui-pas )
2017-11-12 00:18:57 +01:00
* [odin-dear_imgui ](https://github.com/ThisDrunkDane/odin-dear_imgui )
2018-06-20 15:52:33 +02:00
* [LuaJIT-imgui ](https://github.com/sonoro1234/LuaJIT-ImGui )