veeenu / hudhook

A videogame overlay framework written in Rust, supporting DirectX and OpenGL
MIT License
167 stars 27 forks source link

Image support #146

Closed veeenu closed 5 months ago

veeenu commented 5 months ago

This PR introduces image textures, finally closing this long awaited feature.

Unfortunately this comes with a change in public API: the initialize and before_render trait methods of ImguiRenderLoop now accept a RenderEngine mutable reference. The imgui::Context can still be accessed through that object's ctx method, though, so the change is rather minimal.

Additionally, other modules where shifted around where it made sense:

Closes #57.