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
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include "imgui.h"
#include <SDL3/SDL.h>
IMGUI_API bool ImGui_ImplSDLSurface3_Init(SDL_Surface* surface);
IMGUI_API void ImGui_ImplSDLSurface3_Shutdown();
IMGUI_API void ImGui_ImplSDLSurface3_NewFrame();
IMGUI_API void ImGui_ImplSDLSurface3_RenderDrawData(ImDrawData* draw_data);
IMGUI_API SDL_Surface* ImGui_ImplSDLSurface3_CreateFontAtlasSurface();