8000 GitHub - linuxy/imgui: Dear ImGui for Mach engine (originally based on michal-z's zgui) · GitHub
[go: up one dir, main page]

Skip to content
linuxyPublic
forked from machlibs/imgui

About

Dear ImGui for Mach engine (originally based on michal-z's zgui)

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

mach/imgui - dear imgui bindings for Mach engine

This repository contains community-maintained Dear Imgui bindings for Mach engine. Works on Windows, Linux, and macOS with zero-fuss cross-compilation & more.

Running the example

git clone --recursive https://github.com/machlibs/imgui
cd imgui/
zig build run-example-basic

Usage

First create a Mach engine project, then in a libs subdirectory of your repo root add the dependency:

git clone --recursive https://github.com/machlibs/imgui

Then in your build.zig add:

...
const imgui = @import("libs/imgui/build.zig");

pub fn build(b: *Builder) void {
    ...
    exe.addPackage(imgui.getPkg(&[_]std.build.Pkg{}));
    imgui.link(b, exe, .{});
}

Join the community

Join the Mach community on Discord or Matrix to discuss this project, ask questions, get help, etc.

Discription of files

  • imgui_c_keys.h - c header file with Imgui keys enum is used to map mach keys to imgui keys.
  • zgui_mach.zig - mach backend implementation for zgui
  • main.zig - main file that provides backend and imgui bindings (copied from zgui)
  • zgui.cpp and zgui.zig - imgui cpp bindings to zig functions (copied from zgui)

Credits

  • Based on michal-z's zgui
  • Mach integration originally by @SergeiSomin

About

Dear ImGui for Mach engine (originally based on michal-z's zgui)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0