Giter Club home page Giter Club logo

Comments (2)

gsal avatar gsal commented on June 26, 2024 1

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.

Gnimuc avatar Gnimuc commented on June 26, 2024

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)

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.