#sdl2 #imgui #events #manage #devices #platform #back-end

imgui-sdl2-support

sdl2 support code for the imgui crate

5 releases (breaking)

0.13.0 Sep 30, 2024
0.12.0 May 5, 2024
0.11.0 Apr 5, 2023
0.10.0 Jan 16, 2023
0.9.0 Jan 5, 2023

#567 in GUI

Download history 127/week @ 2024-11-21 133/week @ 2024-11-28 175/week @ 2024-12-05 323/week @ 2024-12-12 73/week @ 2024-12-19 12/week @ 2024-12-26 242/week @ 2025-01-02 199/week @ 2025-01-09 155/week @ 2025-01-16 205/week @ 2025-01-23 176/week @ 2025-01-30 159/week @ 2025-02-06 172/week @ 2025-02-13 102/week @ 2025-02-20 178/week @ 2025-02-27 147/week @ 2025-03-06

615 downloads per month
Used in yane

MIT/Apache

17KB
292 lines

imgui-sdl2-support

This crate provides an SDL2 based backend platform for imgui-rs.

A backend platform handles window/input device events and manages their state.

Using the library

There are three things you need to do to use this library correctly:

  1. Initialize a SdlPlatform instance
  2. Pass events to the platform (every frame)
  3. Call frame preparation callback (every frame)

For a complete example, take a look at the imgui-rs' GitHub repository.

Dependencies

~34MB
~586K SLoC