mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
ImDebugger: Add a basic texture browser
This commit is contained in:
1 parent
27f08d705b
commit
e4adc112ff
21 files changed
+152
-18
No files matched your search
@@ -3,6 +3,7 @@
|
||||
#include "UI/ImDebugger/ImGe.h"
|
||||
#include "UI/ImDebugger/ImDebugger.h"
|
||||
#include "GPU/Common/FramebufferManagerCommon.h"
|
||||
#include "GPU/Common/TextureCacheCommon.h"
|
||||
|
||||
#include "Core/HLE/sceDisplay.h"
|
||||
|
||||
@@ -17,6 +18,17 @@ void DrawFramebuffersWindow(ImConfig &cfg, FramebufferManagerCommon *framebuffer
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void DrawTexturesWindow(ImConfig &cfg, TextureCacheCommon *textureCache) {
|
||||
if (!ImGui::Begin("Textures", &cfg.texturesOpen)) {
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
textureCache->DrawImGuiDebug(cfg.selectedTexAddr);
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void DrawDisplayWindow(ImConfig &cfg, FramebufferManagerCommon *framebufferManager) {
|
||||
if (!ImGui::Begin("Display", &cfg.framebuffersOpen)) {
|
||||
ImGui::End();
|
||||
|
||||
Reference in new issue
Block a user