thennequin / ImWindow

Window and GUI system based on Dear ImGui from OCornut
MIT License
845 stars 119 forks source link

Working example #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

It looks interesting, but how the docking window works ?

Do you have some example code that show how to use it in our own application ?

Thanks

thennequin commented 8 years ago

Hi,

you can find the exemple in ImWindowDX11/main.cpp if you already have a render with ImGui, you can just instantiate ImwWindowManager and call Run from this instance on each frame, it call ImGui::Render() automaticly, so ne need to call it.

ghost commented 8 years ago

Thanks,

Does it work on Linux & Mac OS ?

On Windows, is it only for DirectX or also for OpenGL ?

thennequin commented 8 years ago

I never test but it should works for only one window (no multi window) if you just use ImwWindowManager, or you can try to create implementation for your platform, like in the DX11 exemple, override ImwWindowManager and ImwPlatformWindow.