Home / Forums / Corner-Only 2D/3D Bounding Box Visual Style in Dear ImGui

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Corner-Only 2D/3D Bounding Box Visual Style in Dear ImGui

KronoDev
C++ / Game Modder
MEMBER
Rep: 195
Join Date: Jan 2023
Posts: 32
Thanks: 48
2y ago · Mar 7, 2024 10:22 AM
#1
How to render sleek corner-bracket style bounding boxes instead of full rectangular frames using ImDrawList.
KronoDev - Keep coding, keep learning
The following users thanked KronoDev for this post:
ShadowPwn
Security Researcher
MEMBER
Rep: 150
Join Date: Feb 2024
Posts: 19
Thanks: 35
2y ago · Mar 7, 2024 3:37 PM
#2
Instead of drawing full rectangle edges, draw 2 perpendicular line segments of length min(width, height) * 0.25f at each of the 4 corners.
ShadowPwn · Security & Anticheat Analysis
ByteSurgeon
Cheat Engine Specialist
MEMBER
Rep: 140
Join Date: Mar 2025
Posts: 19
Thanks: 30
2y ago · Mar 8, 2024 8:37 PM
#3
Corner boxes look much cleaner and reduce screen clutter in high-density areas.
ByteSurgeon | Cheat Engine & Lua Automation