You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back-end/Renderer/Compiler/OS
Back-ends: rlImGui
Operating System: Linux Mint 21.1 Vera
My Question:
I made a custom title bar for my game engine using dear imgui. At the moment, the title bar is too basic. So, I want to add more detail to it. I believe I can add more detail to it using dear imgui, but I don't know how. I came here with a possible design in mind, and I'd like to know how I implement it.
Screenshots
Original Title Bar:
Photoshoped Title Bar:
How did I implement my title bar:
The code uses BeginMainMenuBar() to create the title bar. It draws Lit Engine's logo at the left of the title bar using ImGui::Image(). It also displays "Lit Engine" in the middle of the bar as well as other buttons and menus.
The text was updated successfully, but these errors were encountered:
It seems like your question is solely a drawing question.
You can use ImDrawList functions PathLineTo(), PathArcTo() to create a path, then PathFillConvex() to fill it. Note that it will only support convex shapes, so it is best is you create your shape in multiple convex parts.
Concave shapes are more difficult to draw (a concave polygon triangular was posted #760 (comment))
ocornut
changed the title
Improving Custom Title Bar
Drawing custom shapes (was: improving Custom Title Bar)
Jan 3, 2024
dear imgui, v1.89.2
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: rlImGui
Operating System: Linux Mint 21.1 Vera
My Question:
I made a custom title bar for my game engine using dear imgui. At the moment, the title bar is too basic. So, I want to add more detail to it. I believe I can add more detail to it using dear imgui, but I don't know how. I came here with a possible design in mind, and I'd like to know how I implement it.
Screenshots

Original Title Bar:
Photoshoped Title Bar:

How did I implement my title bar:
The code uses
BeginMainMenuBar()
to create the title bar. It draws Lit Engine's logo at the left of the title bar usingImGui::Image()
. It also displays "Lit Engine" in the middle of the bar as well as other buttons and menus.The text was updated successfully, but these errors were encountered: