Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add imgui to Thyme to allow implementing custom debug functionality to game #269

Open
xezon opened this issue Oct 14, 2021 · 2 comments
Open
Assignees

Comments

@xezon
Copy link
Contributor

xezon commented Oct 14, 2021

Imgui allows to draw texts, menus and interactive UI elements on top of the game. This can be used to present debug information such as profilers or implement features that can be enabled and controlled on runtime. A limited set of features may even be presented to the end user, such as configuring max fps value, normally not available in the game.

Code: https://github.com/ocornut/imgui

For starters, ImDrawData needs to be punched in the DirectX render loop. This needs to happen before IDirect3DDevice8::Present is called and after all game vertices have been drawn.

imgui does provide code sample for DirectX 9. This can be adapted for DirectX 8. The same principles apply.

https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx9.h

@xezon xezon self-assigned this Feb 14, 2022
@xezon
Copy link
Contributor Author

xezon commented Nov 18, 2022

Something for DX 8 here.

ocornut/imgui#5379

@xezon
Copy link
Contributor Author

xezon commented Nov 18, 2022

tomsons26:

We'd need game engine classes for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants