All Projects → haddock7 → hlimgui

haddock7 / hlimgui

Licence: MIT license
No description or website provided.

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
haxe
709 projects

Projects that are alternatives of or similar to hlimgui

binviz
Binary visualization tool primarily aimed at videogame reverse engineering & research.
Stars: ✭ 32 (+14.29%)
Mutual labels:  imgui
s7-imgui
Using s7 scheme alongside Dear ImGui to (interactively) build (cross platform) GUI apps.
Stars: ✭ 29 (+3.57%)
Mutual labels:  imgui
ImGui Widgets
my imgui widgets/skin including custom UI on openFrameworks
Stars: ✭ 24 (-14.29%)
Mutual labels:  imgui
ImStudio
Real-time GUI layout designer for Dear ImGui
Stars: ✭ 285 (+917.86%)
Mutual labels:  imgui
ButOSX
CSGO Cheat Base for MacOSX. Written in C++ & Objective C. Menu Powered by ImGui. Includes Apple TouchBar API.
Stars: ✭ 58 (+107.14%)
Mutual labels:  imgui
Poptart.jl
🏂 GUI programming in Julia based on CImGui.jl
Stars: ✭ 44 (+57.14%)
Mutual labels:  imgui
panorama
Lightweight system monitor for Linux
Stars: ✭ 31 (+10.71%)
Mutual labels:  imgui
HalfPayne
No description or website provided.
Stars: ✭ 33 (+17.86%)
Mutual labels:  imgui
imgui entt entity editor
A drop-in entity editor for EnTT with Dear ImGui
Stars: ✭ 146 (+421.43%)
Mutual labels:  imgui
LiteGui
Immediate Mode GUI From Scratch
Stars: ✭ 15 (-46.43%)
Mutual labels:  imgui
Fractal Engine
WIP 3D game engine with editor and other stuff
Stars: ✭ 152 (+442.86%)
Mutual labels:  imgui
wave-gui
Yet another data-over-sound tool
Stars: ✭ 64 (+128.57%)
Mutual labels:  imgui
ebiten-imgui
Dear ImGui renderer for Ebitengine
Stars: ✭ 82 (+192.86%)
Mutual labels:  imgui
Syndra
3D Game Engine/Renderer
Stars: ✭ 40 (+42.86%)
Mutual labels:  imgui
surface splatting
OpenGL demo of a point rendering and texture filtering technique called Surface Splatting.
Stars: ✭ 125 (+346.43%)
Mutual labels:  imgui
microui-odin
A tiny immediate-mode UI library for The Odin Programming Language
Stars: ✭ 24 (-14.29%)
Mutual labels:  imgui
imgui-rs-vulkan-renderer
A Vulkan renderer for imgui-rs using Ash
Stars: ✭ 44 (+57.14%)
Mutual labels:  imgui
uimgui
UImGui (Unity ImGui) is an UPM package for the immediate mode GUI library using ImGui.NET. This project is based on RG.ImGui project.
Stars: ✭ 143 (+410.71%)
Mutual labels:  imgui
nuklear4j
Java binding for nuklear
Stars: ✭ 61 (+117.86%)
Mutual labels:  imgui
RCCpp-DearImGui-GLFW-example
Add Runtime Compiled C++ to the Dear ImGui example using the GLFW and OpenGL backend - with power saving
Stars: ✭ 61 (+117.86%)
Mutual labels:  imgui

Heaps/HashLink native binding for Dear ImGui

Build & Install

First, make sure that HashLink, CMake and a C/C++ compiler are installed on your system.

Then the native extension needs to be built with these commands:

cd extension
mkdir build
cd build

cmake ..
cmake --build .

It builds a the target hdll file, and copy it to the root of the project.

Another method is to build it inside Visual Studio Code with CMake Tools extension installed, so you don't have to deal with the command line.

To add this library to your project, you need to include these files:

  • The previously compiled hlimgui.hdll file.
  • imgui/ImGuiDrawable.hx: this class derives from the standard Heaps Drawable class and contains/displays all ImGui widgets.
  • imgui/ImGui.hx: interface to the native extension.

See Main.hx to see how to implement this library.

Supported ImGui features

Most of the ImGui functionalities are supported and binded. Look at https://github.com/ocornut/imgui to get documentation on exposed functions AND how ImGui works.

Here is a list of unsupported features and changes:

  • Custom fonts aren't implemented.
  • As Haxe doesn't support function overloading, so if two original functions have the same name, the second one in Haxe has a suffix 2 to disguish it. For example:
public static function treeNode(label : String) : Bool {return false;}
public static function treeNode2(str_id : String, label : String) : Bool {return false;}
  • ImGui has several functions which take a variable number of parameters in order to format strings. This feature isn't supported in Haxe, so all string formatting must be done in Haxe before passing it to ImGui.

  • InputText function takes a byte buffer as parameter. This needs to be converted to a string like this example:

var input_text_buffer = new hl.Bytes(128);
if (ImGui.inputText('Text', input_text_buffer, 128)) {
    var st = @:privateAccess String.fromUTF8(input_text_buffer);
    trace(st);
}
  • The function setIniFilename doesn't exist in ImGui, it has been added to modify the filename of the default ini file saved by ImGui (pass null to turn off this feature).

  • Due to type conversions between Haxe and ImGui, editing the object returned from getStyle does not immediately update the default styles. The setStyle method has been added to provide that functionality. For example:

var style:ImGuiStyle = ImGui.getStyle();
style.WindowBorderSize = 0;
style.WindowRounding = 0;
ImGui.setStyle(style);

Bugs

If you find bugs, please report them on the GitHub project page. Most of the binded functions have been tested, but as it's a new library some bugs might remain.

Thanks

I would like to thanks Aidan63 for their Haxe/cpp binding. I have borrowed all the structure declaration code which remains the same between the two bindings.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].