#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

#226 in GUI

Download history 91/week @ 2024-08-17 197/week @ 2024-08-24 288/week @ 2024-08-31 139/week @ 2024-09-07 145/week @ 2024-09-14 61/week @ 2024-09-21 241/week @ 2024-09-28 145/week @ 2024-10-05 96/week @ 2024-10-12 259/week @ 2024-10-19 82/week @ 2024-10-26 86/week @ 2024-11-02 70/week @ 2024-11-09 74/week @ 2024-11-16 157/week @ 2024-11-23 136/week @ 2024-11-30

449 downloads per month

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

~33MB
~586K SLoC