Compare commits

..

3 Commits

Author SHA1 Message Date
8d1701b0bb [turbine/glfw] Ensure window opens with a standard mandatory refresh period
All checks were successful
Build / build (push) Successful in 3m19s
2025-01-04 23:49:04 -06:00
1048e522fd [imgui] Make ImGui not an object lib 2025-01-04 23:42:43 -06:00
ee59da4aa3 [glad] Make glad not an object lib 2025-01-04 23:42:43 -06:00
3 changed files with 22 additions and 4 deletions

View File

@ -1,2 +1,11 @@
add_library(glad OBJECT src/glad.c)
target_include_directories(glad PUBLIC include)
add_library(glad src/glad.c)
target_include_directories(glad PUBLIC include)
install(
TARGETS
glad
DESTINATION
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

View File

@ -6,7 +6,7 @@ endif()
# DrinkingTea: end
add_library(
imgui OBJECT
imgui
imgui.cpp
imgui_demo.cpp
imgui_draw.cpp
@ -19,4 +19,12 @@ add_library(
target_include_directories(
imgui SYSTEM PUBLIC
.
)
)
install(
TARGETS
imgui
DESTINATION
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

View File

@ -50,6 +50,7 @@ ox::Result<ContextUPtr> init(
glfwInit();
OX_RETURN_ERROR(initGfx(*ctx));
glfwSetWindowSizeCallback(ctx->window, draw);
ctx->mandatoryRefreshPeriodEnd = ticksMs(*ctx) + config::MandatoryRefreshPeriod;
return ox::UPtr<Context, ContextDeleter>(ctx.release());
}