Skip to content

ExPixel/rust-imgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-imgui Build Status

Thin Rust wrapper for ImGui

Use cargo run --example imgui_demo to run the demo.

This library can be used just like imgui for the most part. Just change pascal case to camel case.
e.g. ImGui::GetVersion() -> imgui::get_version()

Example Usage (not including setup):

#[macro_use] extern crate rust_imgui;
use rust_imgui as imgui;

pub fn imgui_example_draw() {
	let mut opened = true;
	imgui::begin(imstr!("Example Window"), &mut opened, imgui::ImGuiWindowFlags_None);
	imgui::text(imstr!("Hello World"));
	imgui::end();
}

If you're using opengl, feel free to just copy the code in the example in examples/imgui_demo.rs.

About

Thin wrapper around Dear ImGUI for Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages