Skip to content
PureBasic interface to CImGui Wrapper
Branch: master
Clone or download
hippyau hippyau
hippyau and hippyau Remove redundant file
Latest commit 52f675f Mar 10, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
cimgui Add Debug DLL Mar 9, 2018
imgui initial Mar 9, 2018
pb Remove redundant file Mar 10, 2018
.gitattributes Initial Mar 9, 2018
.gitignore Add Debug DLL Mar 9, 2018
.gitmodules initial Mar 9, 2018
.travis.yml initial Mar 9, 2018
LICENSE initial Mar 9, 2018 Update Mar 9, 2018
menus-api.gif initial Mar 9, 2018
screenshot.png initial Mar 9, 2018
screenshot1.png initial Mar 9, 2018



This is a PureBasic (PB) wrapper for a slightly modified cimgui.

pb-cimgui.cpp adds some helper functions to cimgui, that create a DX11 environment and provide basic imaage and font loading.

The _run_gui() function exported by the DLL starts a loop, which then calls back to a specified PB function, which is now your main loop for your PB App. This loop will exit when the app is closed.

cimgui is a thin c-api wrapper for the excellent C++ intermediate gui imgui. Most of the functions have wrapper counterparts now, missing stuff is added on a as-needed basis (PR welcome). 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)


  1. Use Visual Studio 2015 Community Edition or whatever to build pb-cimgui.dll from the pb-cimgui.sln solution.

  2. Include the pb-cimgui.pbi file from the pb directory in PureBasic 5.40 into your project to import DLL functions. See main.pb for an example usage in PB.


You can’t perform that action at this time.