xo-imgui: restore opengl + vulkan builds

This commit is contained in:
Roland Conybeare 2025-09-23 00:53:31 -04:00
commit d9aa1ddc81
15 changed files with 202 additions and 194 deletions

View file

@ -3,7 +3,7 @@ if (XO_ENABLE_EXAMPLES)
if (XO_ENABLE_OPENGL)
# TODO: maybe at some point incorporate imgui sources directly into xo source tree
# TODO: maybe incorporate imgui sources into xo-imgui library
find_path(IMGUI_INCLUDE_DIR
NAMES imgui/imgui.h
DOC "path to imgui header"

View file

@ -26,7 +26,12 @@ int main(int, char **)
std::cout << "Hello, world!" << std::endl;
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
// 500fps with no hint
// 60gps with hint
//
// presumably GLX optimized relative to EGL
//SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
SDL_Init(SDL_INIT_VIDEO);