2021年9月10日

ImGui-imgui实例解析之ShowDemoWindowWidgets-Basic

摘要: ImGui-imgui实例解析之ShowDemoWindowWidgets 应该是禁用的功能:但不知道为什么在1.83的界面没看到。而且1.72版本是没有这个功能的。ImGui::BeginDisabled();ImGui::EndDisabled();增加按钮:处理事件,作者这种处理方式,我还是第 阅读全文

posted @ 2021-09-10 16:08 疯狂delphi 阅读(3025) 评论(0) 推荐(1) 编辑

ImGui-imgui实例解析之Window options

摘要: ImGui-imgui实例解析之Window options 增加表格:// 这应该是说有3列,你是不是想问为什么不我试一下,我TM发现能测试的电脑用的是1.72版本,// 用的是checkbox显示的,不能测试的电脑用的是1.83版本的,对我现在就是在1.83上。if (ImGui::BeginT 阅读全文

posted @ 2021-09-10 15:06 疯狂delphi 阅读(955) 评论(0) 推荐(0) 编辑

ImGui-imgui实例解析之ShowStyleEditor-Fonts

摘要: ImGui-imgui实例解析之ShowStyleEditor-Fonts 获得字体:ImFontAtlas* atlas = io.Fonts;显示字体集:ImGui::ShowFontAtlas(atlas);艹,这里面代码太多了,你们自己看吧。呵呵。for (int i = 0; i < at 阅读全文

posted @ 2021-09-10 11:15 疯狂delphi 阅读(502) 评论(0) 推荐(0) 编辑

ImGui-imgui实例解析之ShowStyleEditor-Colors

摘要: ImGui-imgui实例解析之ShowStyleEditor-Colors 没有明白是什么意思:LogBegin(ImGuiLogType_TTY, auto_open_depth);ImGui::LogText("ImVec4* colors = ImGui::GetStyle().Colors 阅读全文

posted @ 2021-09-10 11:04 疯狂delphi 阅读(702) 评论(0) 推荐(0) 编辑

ImGui-imgui实例解析之ShowStyleEditor-Sizes

摘要: ImGui-imgui实例解析之ShowStyleEditor-Sizes 获取皮肤:ImGuiStyle& style = ImGui::GetStyle();设置宽度:ImGui::PushItemWidth(ImGui::GetWindowWidth() * 0.50f);颜色选择器:if ( 阅读全文

posted @ 2021-09-10 11:00 疯狂delphi 阅读(1921) 评论(0) 推荐(0) 编辑

ImGui-imgui实例解析之ShowDemoWindow

摘要: imgui实例解析之ShowDemoWindow 实例入口:实例的总入口。ShowDemoWindow断言:判断IMGUI上下文是否正常,如果不正常后面的函数将全部报错,所以在此断言。IM_ASSERT(ImGui::GetCurrentContext() != NULL && "Missing d 阅读全文

posted @ 2021-09-10 09:38 疯狂delphi 阅读(1669) 评论(0) 推荐(0) 编辑

导航