Comments (4)
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.
Thanks, @dertseha for the awesome advice. Have a great day!
from imgui-go-examples.
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.
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)
- How to hide the container window? HOT 16
- exit status 3221225477 HOT 13
- example for webassembly HOT 3
- checkptr failure HOT 1
- Client example available? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui-go-examples.