mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-31 03:23:37 +00:00
[client] app: implement new overlay rendering framework
This change set implements a framework for overlays to be registered that make use of ImGui. See `overlay/fps` for a simple implementation example.
This commit is contained in:
parent
30c4a4786b
commit
fdbdf6f167
11 changed files with 385 additions and 124 deletions
|
@ -686,7 +686,7 @@ bool opengl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
|
|||
break;
|
||||
}
|
||||
|
||||
if (app_renderImGui())
|
||||
if (app_renderOverlay(NULL, 0) > -1)
|
||||
{
|
||||
ImGui_ImplOpenGL2_NewFrame();
|
||||
ImGui_ImplOpenGL2_RenderDrawData(igGetDrawData());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue