Skip to content

Automatically generated low-level C# bindings for Dear ImGui

License

Notifications You must be signed in to change notification settings

atomsk-0/Mochi.DearImGui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of MochiLibraries/Mochi.DearImGui, Modified for my other projects, this fork removes the OpenTK backend and instead uses imgui provided backends by including them for source generation.

Dear ImGui-flavored Mochi

MIT Licensed Sponsor

This repo contains C# bindings for Dear ImGui as well as a Biohazrd-powered generator for generating them.

In contrast to other C# bindings for Dear ImGui, this one interacts with the C++ API directly and is lower-level. If you need high-level bindings consider using the excellent ImGui.NET instead.

License

This project is licensed under the MIT License. See the license file for details.

Additionally, this project has some third-party dependencies. See the third-party notice listing for details.

Building

Windows Prerequisites

Windows 10 21H2 x64 is recommended.

Tool Tested Version
Visual Studio 2022 (17.1.0p2)
.NET 6.0 SDK 6.0.101
CMake 3.22.0

Visual Studio must have the "Desktop development with C++" workload installed.

Linux Prerequisites

Ubuntu 20.04 Focal x64 is recommended, but most distros are expected to work. (Mochi.DearImGui itself should also work on Linux ARM64, but the OpenTK backend doesn't since OpenTK's GLFW redistributable doesn't.)

Package Tested Version
build-essential 12.8
cmake 3.16.3
dotnet-sdk-6.0 6.0.100

Building Dear ImGui and generating the bindings

  1. Ensure Git submodules are up-to-date with git submodule update --init --recursive
  2. Build and run generate.cmd (Windows) or generate.sh (Linux) from the repository root

(Sample project is not included)

About

Automatically generated low-level C# bindings for Dear ImGui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 91.3%
  • Shell 3.4%
  • Batchfile 3.0%
  • CMake 2.0%
  • C 0.3%