Add SDL3 surface backend for ImGui example

- Created imgui_impl_sdlsurface3.h and corresponding implementation file.
- Added Makefile for building the SDL3 surface example on Linux and macOS.
- Included README.md with build instructions for Windows, Linux, and macOS.
- Added build script for Windows (build_win32.bat) and Visual Studio project files.
- Implemented main application logic in main.cpp to demonstrate ImGui with SDL3 and surface rendering.
This commit is contained in:
moonpower
2026-03-13 13:23:18 +01:00
parent 00843f9ece
commit 2f2b8a1226
12 changed files with 1898 additions and 242 deletions
+2
View File
@@ -94,6 +94,8 @@ List of Renderer Backends:
imgui_impl_sdlgpu3.cpp ; SDL_GPU (portable 3D graphics API of SDL3)
imgui_impl_sdlrenderer2.cpp ; SDL_Renderer (optional component of SDL2 available from SDL 2.0.18+)
imgui_impl_sdlrenderer3.cpp ; SDL_Renderer (optional component of SDL3. Prefer using SDL_GPU!).
imgui_impl_sdlsurface2.cpp ; SDL_Surface CPU renderer for SDL2
imgui_impl_sdlsurface3.cpp ; SDL_Surface CPU renderer for SDL3
imgui_impl_vulkan.cpp ; Vulkan
imgui_impl_wgpu.cpp ; WebGPU (web + desktop)