Skip to content

Basic Luminance renderer for imgui

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

SnoozeTime/imgui_luminance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luminance render for imgui-rs

Use this renderer if you want to add imgui-rs to a luminance-based application.

See luminance and imgui-rs for more details.

How to use

Initialize the renderer before your main loop with:

let mut renderer = imgui_luminance::Renderer::new(&mut surface, &mut imgui);

where surface is the Gltw surface and imgui is the imgui Context.

At each frame, prepare the data to draw with:

renderer.prepare(&mut surface, draw_data);

Then render it to the framebuffer of your choice. For example, the backbuffer:

surface.pipeline_builder().pipeline(&back_buffer, &PipelineState::default(), |pipeline, mut shd_gate| {
    renderer.render( &pipeline, &mut shd_gate, draw_data);
});

The full example can be found here.

What's left?

The renderer might not be bug-free. I am using it on a different project so I'll fix any issues I find. Don't hesitate to add tickets if something is wrong.

I will also update to the newest version of luminance when it is released so it should become backend agnostic at that moment.

About

Basic Luminance renderer for imgui

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published