Skip to content

Add SDL3 backend#392

Merged
SpaiR merged 3 commits intomainfrom
feat/sdl3-support
Apr 26, 2026
Merged

Add SDL3 backend#392
SpaiR merged 3 commits intomainfrom
feat/sdl3-support

Conversation

@SpaiR
Copy link
Copy Markdown
Owner

@SpaiR SpaiR commented Apr 26, 2026

Introduce a Java 1:1 port of Dear ImGui's SDL3 platform backend. This backend supports single-viewport rendering and event forwarding for SDL3 (mouse, keyboard, gamepads). Includes helpers for gamepad mode management, mouse capture, and clipboard integration. Mirrors upstream lifecycle and event handling methods (init, shutdown, processEvent, newFrame) while omitting elements requiring C function pointers (e.g., IME callbacks, multi-viewport support).

Multi-viewport support will be introduced in later commits.

closes #377

Type of change

  • Minor changes or tweaks (quality of life stuff)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Introduce a Java 1:1 port of Dear ImGui's SDL3 platform backend. This backend supports single-viewport rendering and event forwarding for SDL3 (mouse, keyboard, gamepads). Includes helpers for gamepad mode management, mouse capture, and clipboard integration. Mirrors upstream lifecycle and event handling methods (`init`, `shutdown`, `processEvent`, `newFrame`) while omitting elements requiring C function pointers (e.g., IME callbacks, multi-viewport support).
@SpaiR SpaiR added the feat New feature or request label Apr 26, 2026
SpaiR added 2 commits April 26, 2026 12:37
…ions

Expand the README to include information on the new SDL3 + SDL_GPU backend for `imgui-app`, configuration example, and instructions for running the smoke test using `MainSdl`. Adjust `example/build.gradle` to support dynamic main class selection via `-PmainClass`.
@SpaiR SpaiR linked an issue Apr 26, 2026 that may be closed by this pull request
@SpaiR SpaiR merged commit eafe433 into main Apr 26, 2026
7 checks passed
@SpaiR SpaiR deleted the feat/sdl3-support branch April 26, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Bindings: SDL

1 participant