mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-04 20:32:00 +00:00
Drawlist issues when using cimgui-go wrapper + ebiten, possibly stemming from imgui #7372
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#7372
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
i believe cimgui uses the docking branch by default. wrapper i'm using is this one: https://github.com/AllenDang/cimgui-go
Back-ends:
https://github.com/damntourists/cimgui-go-ebiten
Compiler, OS:
ubuntu
Full config/build information:
git clone https://github.com/damntourists/cimgui-go-ebiten.git
cd cimgui-go-ebiten
go run -tags exclude_cimgui_glfw,exclude_cimgui_sdli examples/basic/main.go
Details:
My Issue/Question:
Hi there, I apologize in advance if this is the wrong place to post this! I posted here because I saw a couple other issues that seemed to be similar that occurred in the past and have since been resolved for others.
I'm currently using AllenDang's cimgui-go wrapper, which shows the following in one of the generated files:
I was using this drawlist rendering code as reference, which seemed to work fine with older versions of imgui https://github.com/gabstv/ebiten-imgui/blob/master/render.go#L52 to allow me to render drawlists on a frame rendered with ebitengen. Never encountered any drawlist issues with the version used on gabstv's repository, however the version used there is forked and old.
Unfortunately, using the same rendering code caused a number of display issues with a more up to date version of imgui which I believe have to do with the cliprect for the scrolling areas.

In the attached image, I've enabled the debug windows to show the cliprects and you can see that the cyan colored rect for the text exceeds the size of the magenta cliprect. This is also happening with other widgets as well (child scroll areas or hovered items for example) Sometimes they'll be visible outside of the window when scrolling.

Another issue I encountered was with modal dialogs appearing with the dim background covering the modal itself.

I am unsure if this has something to do with the wrappers, or if it's underlying code in imgui that is causing issues.
Any insight would be helpful!
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code: