Giter VIP home page Giter VIP logo

odin-imgui's Introduction

odin-imgui

This is an odin wrapper for dear imgui v1.82 (Generated from the auto-generated cimgui).

It contains generated wrappers as well as handwritten ones to make it better fit with the odin language. It will also contain extra utility functions that are not present in cimgui.

scrshot

You can download the latest release with pre-built cimgui binaries here.

Examples

You can find examples of setting up odin-imgui using the provided implementations inside the examples folder, current examples exists;

Done:

  • SDL with OpenGL 4.5

WIP:

  • SDL with D3D11

Implementations

Implementations are reusable bits of code using popular odin libraries/bidings, inside the impl folder there currently are;

Notes:

  • Most functions have been wrapped or bound, those missing will either be added by the maintainer over time or by PR (PRs VERY WELCOME)

Building cimgui

If you want to build cimgui yourself instead of using the binaries that exist in the repo, you can just call make cimgui from a command prompt that has cl and link in their path.

odin-imgui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

odin-imgui's Issues

Font Issue

Custom fonts are broken. The font data seems valid when I print it out but it just makes the whole gui display black rectangles.

Odin Code:

io := imgui.get_io()
font := imgui.font_atlas_add_font_from_file_ttf(io.fonts, "Roboto-Medium.ttf", 16)
is_font_built := imgui.font_atlas_build(io.fonts)

Result:

image


Here is the C++ equivalent:

ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("Roboto-Medium.ttf", 16);

Result:

image

Docking

Would you be open to switching to the docking branch for cimgui? All we would have to do is switch the branch in the .gitmodules folder and write a few bindings for the new docking procedures.

This would let us do things like this:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.