extrawurst / derelictimgui Goto Github PK
View Code? Open in Web Editor NEWDynamic bindings to the cimgui library (a c-api for IMGUI) for the D programming language
License: MIT License
Dynamic bindings to the cimgui library (a c-api for IMGUI) for the D programming language
License: MIT License
In types.d enum ImGuiSelectableFlags_
should not have a name
Hello,
I'm working to support imgui_demo.d, D-lang version of imgui_demo.cpp.
It will show how to use DerelictImgui and demonstrate it works fine.
I need some arrange and bug fix of cimgui as well.
It will become available soon and let me contribute the code.
Regards, Aki.
Hi,
I compiled cimgui
v1.50.1 (against imgui
v1.50) as per the README, but it looks like the library is lagging behind:
DerelictImgui/examples/imgui_demo/bin/ > env LD_LIBRARY_PATH=`pwd`/../lib ./imgui_demo
derelict.util.exception.SymbolLoadException@/home/fle/.dub/packages/derelict-util-2.0.6/derelict-util/source/derelict/util/exception.d(35): Failed to load symbol igPushStyleColorU32 from shared library cimgui.so
----------------
??:? void* derelict.util.sharedlib.SharedLib.loadSymbol(immutable(char)[], bool) [0x1294ecbb]
??:? void* derelict.util.loader.SharedLibLoader.loadSymbol(immutable(char)[], bool) [0x1294d412]
??:? void derelict.util.loader.SharedLibLoader.bindFunc(void**, immutable(char)[], bool) [0x1294d468]
??:? void derelict.imgui.imgui.DerelictImguiLoader.loadSymbols() [0x129485a5]
??:? void derelict.util.loader.SharedLibLoader.load(immutable(char)[][]) [0x1294d292]
??:? void derelict.util.loader.SharedLibLoader.load(immutable(char)[]) [0x1294d20c]
??:? void derelict.util.loader.SharedLibLoader.load() [0x1294d0ef]
??:? _Dmain [0x1290d2c8]
Hi,
I quickly tried using the demo with cimgui
v1.53.1, and I had weird missing symbol errors, it'd be nice to bring the D bindings up to speed with upstream ImGui
/cimgui
.
Hi, would it be possible to update derelict-util to 2.x.y
instead of ~>1.9.1
re: DerelictOrg/DerelictCL#1 thanks
Steps to reproduce:
Be on Mac OS X 10.11.
Install dub dependency imageformats
and import it into imgui_d_test
(your repo).
Before void main:
GLuint tex = 0;
IFImage im;
After initialization:
im = read_image("/Users/Home/whatever.png", 4);
glGenTextures(1, &tex);
glBindTexture(GL_TEXTURE_2D, tex);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, cast(int)im.w, cast(int)im.h, 0, GL_RGBA, GL_UNSIGNED_BYTE, &im.pixels);
Then, in a window,
igImage( &tex, ImVec2(im.w, im.h), ImVec2(0,0), ImVec2(1,1), ImVec4(255,255,255,255), ImVec4(255,255,255,0));
(Or appropriate igImageButton call.)
Then, you shall get what I describe in my title: Instead of the actual image, it shows the image of the embedded font in ImGui. If it is a button, you just get a blank white button.
Would you mind fixing this? I have no idea why this could be. Any help would be very much appreciated.
Hi,
I can't compile the demo because of the following errors:
DerelictImgui-master/examples/imgui_demo/ > dub
Fetching derelict-gl3 1.0.23 (getting selected version)...
Performing "debug" build using /usr/bin/dmd for x86_64.
derelict-util 2.0.6: target for configuration "library" is up to date.
derelict-gl3 1.0.23: building configuration "library"...
derelict-glfw3 3.1.3: target for configuration "derelict-glfw3-dynamic" is up to date.
derelict-imgui ~master: building configuration "library"...
Error: undefined identifier __va_list_tag
/usr/bin/dmd failed with exit code 1.
Thanks.
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.