imgui-sdl2-support

Crates.ioimgui-sdl2-support
lib.rsimgui-sdl2-support
version0.13.0
sourcesrc
created_at2023-01-05 01:37:55.515153
updated_at2024-09-30 03:00:21.376414
descriptionsdl2 support code for the imgui crate
homepagehttps://github.com/imgui-rs/imgui-sdl2-support
repositoryhttps://github.com/imgui-rs/imgui-sdl2-support
max_upload_size
id751246
size43,633
Jonathan Spira (sanbox-irl)

documentation

https://docs.rs/imgui-sdl2-support

README

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.

Commit count: 8

cargo fmt