如何解决ImGui FindWindowByID未处理的异常错误的窗口ID?
我有一个ImGui项目,我从中复制了一个示例,但该示例无法运行。
问题是下面的FindWindowByID(id)
总是遇到异常。
ImGuiWindow* ImGui::FindWindowByName(const char* name) {
ImGuiID id = ImHashStr(name);
return FindWindowByID(id);
}
id的值为1243066710
。
这是我的人生开始:
ImGui::Begin("Hello World",NULL,ImGuiWindowFlags_MenuBar);
我包括:
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <SDL.h>
#include "imgui-style.h"
#include "imgui/imgui_impl_sdl.h"
#include "imgui/imgui_impl_opengl3.h"
#include "functions.h"
如果需要其他信息,请告诉我。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。