随笔分类 - ImGui
摘要:详见Add dashed circle and line functions. by ecraven · Pull Request #1118 · ocornut/imgui (github.com)
阅读全文
摘要:You can use AddCallback() on a given ImDrawList:: to register functions to be run during rendering and use callbacks to alter your render state (e.g.
阅读全文
摘要:ImGui本质上是个2d渲染引擎,渲染3d数据只能另辟蹊径。目前主要有3种方法: 一是2d转换,可以自己处理3维坐标向屏幕坐标的转换,然后调用ImGui的二维绘制函数进行渲染; 二是3d贴图,首先在3d引擎侧渲染到bufferframe,然后调用ImGui的Image函数将结果贴到窗口; 三是回调渲
阅读全文
摘要:FontSize + FramePadding.y * 2 具体参考How to customize titlebar elements? · Issue #1539 · ocornut/imgui (github.com)
阅读全文