backend_test/example_sdlgpu3: thanks to @hgranthorner PR #291 with generation from cmake

This commit is contained in:
sonoro1234
2025-03-22 17:36:09 +01:00
parent 334c9fa140
commit 4e3e9b5fb2
6 changed files with 316 additions and 1 deletions

View File

@@ -463,6 +463,7 @@ if #implementations > 0 then
local impl_str = ""
local impl_str_cpp = {}
for i,impl in ipairs(implementations) do
print("------------implementation:",impl)
table.insert(impl_str_cpp, "\n#ifdef CIMGUI_USE_" .. string.upper(impl))
table.insert(impl_str_cpp, [[#include "imgui_impl_]]..impl..[[.h"]])
table.insert(impl_str_cpp, "#endif")