#ImGui users that can help me make it work, I dont see anything

1 messages · Page 1 of 1 (latest)

gaunt oak
#

So i added ImGui to my project (dont worry java users, my project is kotlin, but it all works practicly the same)
but i cant seem to get any gui on my screen, i am trying this for example
https://github.com/SpaiR/imgui-java/blob/v1.75-0.7.2/imgui-lwjgl3/src/test/java/ImGuiGlfwExample.java

but this wont show anything aswell
this is the second time i am trying to add it and yet again it does nothing

I also have no idea why it wont show anything, if i knew i would have already search for a fix
but all i know is that it doenst

I am initializing, (even with the IO, but that shouldn't even matter) (not with the fonts thought, dont have them in my resource folder so it gives null error, anyway, that shouldnt matter to, it will just use default font)
Then i am calling it every game loop using a render method, setting the screenwidth, some mouse position stuff, and then calling ImGui.render() and the GL3.render(ImGui.getDrawData())
I am also swapping the buffer just like you're supose to

So i have no clue what is wrong

I even addid the default.frag and the default.vert in the resources folder, even though that isnt needed (just added it just in case)

GitHub

JNI based binding for Dear ImGui. Contribute to SpaiR/imgui-java development by creating an account on GitHub.

slate knotBOT
#

<@&987246964494204979> please have a look, thanks.

slate knotBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

gaunt oak
#

maby it has to do something with that jCenter is depricated or somethign

#

it sais to use mavenCentral() instead. I was using anyway before that, so that meant i could keep it
but when i remove jcenter() it gives an build error, so for some reason thats not enough or something