Code Monkey home page Code Monkey logo

derelictimgui's Issues

supporting imgui_demo.d

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.

Can't run the demo with `cimgui` v1.50.1

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]                                                                                  

Support `cimgui` v1.53.1

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.

igImage showing wrong image, igImageButton is completely white.

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.

screen shot 2016-03-21 at 8 26 32 pm

Would you mind fixing this? I have no idea why this could be. Any help would be very much appreciated.

Error: undefined identifier ImGuiTextBufferWrapper

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.

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.