jvcleave / ofxImGui

Use ImGui in openFrameworks
296 stars 124 forks source link

clipping #1

Closed jvcleave closed 8 years ago

jvcleave commented 9 years ago

some strange clipping going on - doesn't happen with ImGui

image

chuckleplant commented 8 years ago

Hi! Just found imgui and an addon is already on the go :D Found this at their Readme:

I integrated ImGui in my engine and some elements are disappearing when I move windows around..

Most likely you are mishandling the clipping rectangles in your render function. Rectangles provided by ImGui are defined as (x1,y1,x2,y2) and NOT as (x1,y1,width,height).

That may be the case with oF integration. Best!

jvcleave commented 8 years ago

interesting - it's been a couple of weeks but I thought it might be related to trying to get glScissor in the OF pipeline. That seems to be the big difference

chuckleplant commented 8 years ago

You're most probably right! Just wanted to add that in case it was relevant. ImGUI looks promising!

jvcleave commented 8 years ago

yeah - I'm somewhat torn on just going back and using the render stuff from ImGui examples. I thought getting it into OF-speak would make it easier for cross-platform-ness but it might not be worth it

jvcleave commented 8 years ago

Seems to be fixed by moving away from ofMesh