vaiorabbit / ruby-imgui Goto Github PK
View Code? Open in Web Editor NEWYet another ImGui wrapper for Ruby
License: Other
Yet another ImGui wrapper for Ruby
License: Other
Hello, Im trying to setup ruby-imgui.. and I have glfw compiled and ready. I also have cimgui ready. I go to do ruby test_glfw_opengl2.rb and it says `rescue in block in dlload': can't load C:/Users/user/ruby-imgui/sample/GLFW3.dll. GLFW3.dll is in the sample folder.. what could be the problem?
Hello!
I've tried this wrapper and it is awesome! Thank you very much for it! Although, I could not bundle this 'gem' into my rubyc compilled app.exe, since ffi is not a standard gem and It fails at the compillation due to ffi is a C ext gem (see rubyc...). Never mind, in short, I can only use fiddle but not ffi.... ๐ฅ.
I saw that you've already dealt with both tool (fiddle, and ffi), and I would be so curious about whether there are any chance rewriting ImGui wrapper in fiddle? I've already solved the string pointers using fiddle in imgui-opengl.rb and imgui-glfw.rb, but - logically - I'm struggling with the imgui.rb conversion proccess.... Do you have any suggestion? I would be intrested in how to pass a struct as a struck's element in fiddle. (Like what you did with the FFI..by_value function)
This and your nuklear binding would be really useful packaged as gems instead of stand-alone projects so that they could be used like any other gui library gem.
Hello.
The setup for opengl uses hardcoded paths on linux which are not "standard" on all distributions sadly, most have recently switched to abolishing the subdirectories like x86_64-linux-gnu or some have their libs installed themselves in /usr/local/lib.
The default library paths can be found via ld --verbose | grep -o SEARCH_DIR[^\;]* for example. Ideally it would try all of them sequentially and use the first one it finds. I am sadly not aware of any Ruby way to query that.
The only thing i can think of is doing something like:
Dir.glob("/usr/l*/**/libglfw.so") for example to get the actual path to an existing libglfw.so
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.