aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64/Windows64_UIController.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Windows64/Windows64_UIController.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/Windows64/Windows64_UIController.h')
-rw-r--r--Minecraft.Client/Windows64/Windows64_UIController.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Minecraft.Client/Windows64/Windows64_UIController.h b/Minecraft.Client/Windows64/Windows64_UIController.h
new file mode 100644
index 00000000..2b2ccdba
--- /dev/null
+++ b/Minecraft.Client/Windows64/Windows64_UIController.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include "..\Common\UI\UIController.h"
+
+class ConsoleUIController : public UIController
+{
+private:
+ ID3D11RenderTargetView* m_pRenderTargetView;
+ ID3D11DepthStencilView* m_pDepthStencilView;
+public:
+ void init(ID3D11Device *dev, ID3D11DeviceContext *ctx, ID3D11RenderTargetView* pRenderTargetView, ID3D11DepthStencilView* pDepthStencilView, S32 w, S32 h);
+
+ void render();
+ void beginIggyCustomDraw4J(IggyCustomDrawCallbackRegion *region, CustomDrawData *customDrawRegion);
+ virtual CustomDrawData *setupCustomDraw(UIScene *scene, IggyCustomDrawCallbackRegion *region);
+ virtual CustomDrawData *calculateCustomDraw(IggyCustomDrawCallbackRegion *region);
+ virtual void endCustomDraw(IggyCustomDrawCallbackRegion *region);
+
+protected:
+ virtual void setTileOrigin(S32 xPos, S32 yPos);
+
+public:
+ GDrawTexture *getSubstitutionTexture(int textureId);
+ void destroySubstitutionTexture(void *destroyCallBackData, GDrawTexture *handle);
+
+public:
+ void shutdown();
+};
+
+extern ConsoleUIController ui; \ No newline at end of file