Comments (2)
Thanks for all the pointers. That command works just fine, by the way; I guess demo.jl
is the entry point and the other files cannot be run by themselves.
Thanks, again.
from cimgui.jl.
As the README indicates in the very first paragraph...this is a Julia wrapper of cimgui, which in turn is a C wrapper of the C++ Dear ImGui ...So, what am I to do if I am coming from Julia and have never heard of any of these 3? Do I need to learn Dear ImGui, first; then, cimgui; then, CImGui.jl ?
This package is rather low-level and the package itself doesn't provide any additional features that Dear ImGui does not provide, so learning Dear ImGui is basically equivalent to learning cimgui and CImGui.jl.
Dear ImGui is documented by these examples and there is an interactive manual here. A majority of those codes are one-to-one ported to Julia here, the demo.jl is where to start.
One thing that is necessary but the package doesn't provide is the rendering loop. If you'd like to render the whole thing via a function, you could wrap those stuff into a module like this one and then use it like this: https://github.com/Gnimuc/Redux.jl/blob/master/examples/counter/app.jl#L32
For simple UIs, it's enough to just use global variables to manage UI states, but as the UI states grow larger, it's inevitable to use some state-management framework like Redux and the "Redux" version of ImGui is working in progress here.
Also, for installation, it just says to do
add CImGui
...is that it? 'cause non of the examples run correctly; nothing visual happens, just get the prompt back. . Any dependencies ?
Could you share some versioninfo or try the following code?
(@v1.4) pkg> activate new_env
Activating new environment at `~/new_env/Project.toml`
(new_env) pkg> add CImGui
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Installed CImGui ─ v1.77.0
Updating `~/new_env/Project.toml`
[5d785b6c] + CImGui v1.77.0
julia> using CImGui, Pkg
[ Info: Precompiling CImGui [5d785b6c-b76f-510e-a07c-3070796c7e87]
julia> include(joinpath(pathof(CImGui), "..", "..", "examples", "demo.jl"))
from cimgui.jl.
Related Issues (20)
- Broken after update HOT 8
- Incomplete overlap HOT 4
- UndefVarError: `igSetScrollYFloat` not defined HOT 1
- Example of integrating a GLMakie plot in a CImGui window (or conversely) HOT 8
- `AddRect()` error: "`ImDrawCornerFlags_All` not defined" HOT 4
- Help / About Dear ImGui / Config/Build information throws an error HOT 1
- Create a CImGui sample application ie running outside of Julia CLI (from PowerShell commandline) HOT 9
- the CImGui.Text(text) function segfaults on aarm (v1.82) HOT 15
- Example code doesn't actually run HOT 6
- Input widgets with different IDs conflict with each other? HOT 6
- How can I get ImGuiWindowClass?
- The getproperty and setproperty! method of ImNodesStyle was not provided
- On some Windows machine, got glfwCreateWindow error HOT 5
- Regenerate new wrapper libraries for fresh ImGui and ImPlot versions? HOT 1
- An error occurs when I use ImGuiTextFilter in a package
- SDL Backend Support? HOT 6
- I can not run the demo HOT 5
- ImGuiKey_KeyPadEnter not defined, when running demo HOT 2
- Upgrading Guide: 1.79 to 1.82
- Expand tests HOT 1
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 cimgui.jl.