Git Product home page Git Product logo

Comments (4)

dertseha avatar dertseha commented on September 28, 2024 1

Hello there and thank you for your message!
With an existing window you have already a first step, this is good.
I'd say it comes down to re-create what is available in this examples repository.

I suspect most of internal/platforms/glfw.go you already have, so you need to focus on only what is necessary what is exposed via the Platform interface in internal/example/Run.go (match what your existing render loop has to this one, and add what's missing).

To get imgui running, you'll then need most/all of what is under internal/renderers - either the OpenGL2 or OpenGL3 variant, whichever you have in your application. Set it up like the corresponding main.go does.
Finally, get the whole loop running by looking at internal/example/Run.go and see what you are missing in your existing loop.

In essence, imgui is quite unobstrusive. You set it up separately, wire up the platform interface to the IO API, and put the render logic before you do the actual SwapBuffer (equivalent).

from imgui-go-examples.

adamthomason avatar adamthomason commented on September 28, 2024 1

Thanks, @dertseha for the awesome advice. Have a great day!

from imgui-go-examples.

adamthomason avatar adamthomason commented on September 28, 2024 1

In case anybody stumbles upon this issue and is interested in how I implemented the advice above, see https://github.com/adamthomason/expression/tree/master/layers/imgui

from imgui-go-examples.

airtonix avatar airtonix commented on September 28, 2024

In case anybody stumbles upon this issue and is interested in how I implemented the advice above, see https://github.com/adamthomason/expression/tree/master/layers/imgui

link is dead.

from imgui-go-examples.

Related Issues (6)

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.