#sdl2 #imgui #dear #platform #events #back-end #frame

imgui-sdl2-support

sdl2 support code for the imgui crate

4 releases (breaking)

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

#832 in GUI

Download history 16/week @ 2024-01-22 4/week @ 2024-01-29 21/week @ 2024-02-12 28/week @ 2024-02-19 71/week @ 2024-02-26 24/week @ 2024-03-04 42/week @ 2024-03-11 34/week @ 2024-03-18 38/week @ 2024-03-25 116/week @ 2024-04-01 33/week @ 2024-04-08 51/week @ 2024-04-15 49/week @ 2024-04-22 208/week @ 2024-04-29 70/week @ 2024-05-06

382 downloads per month

MIT/Apache

665KB
13K SLoC

This crate provides a SDL 2 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
~578K SLoC