Code Monkey home page Code Monkey logo

imgui-go-examples's Introduction

Examples of Dear ImGui for Go

Go Report Card Lint Status

This project contains a set of Go examples for imgui-go, which is a wrapper for Dear ImGui.

It provides reference implementations on how to use and integrate Dear ImGui in Go.

Screenshot

Layout

The project follows the basic concept of the examples of Dear ImGui by separating platform and renderer bindings from the example applications that wire them together in compatible constellations.

  • cmd contains the main functions of the example applications. They typically combine a platform with a renderer.
  • internal contains the reusable library components
    • platforms contains code for mouse/keyboard/gamepad inputs, cursor shape, timing, windowing. For example based on: GLFW3 and SDL2.
    • renderers contains code for creating the main font texture, rendering imgui draw data. For example using: OpenGL (both v2.1 (fixed pipe) and v3.2 (shaders) via glow generated binding code)
    • example contains the common example code.
    • demo contains the ported imgui_demo.cpp code to showcase what is wrapped.

Running examples

Some platforms and/or renderers may require dedicated build flags to be passed. Each example comes with a separate README.md that describes how to run them.

Build flags are used in order to avoid compiling all the libraries at once.

License

The project is available under the terms of the New BSD License (see LICENSE file).

imgui-go-examples's People

Contributors

dertseha avatar jetsetilly avatar konstantin8105 avatar ptxmac avatar

Watchers

James Cloos avatar  avatar

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.