aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Windows64/Windows64_UIController.h
blob: 398e971268c4c5e94421fabe8df473d6d45d2353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);

	void updateRenderTargets(ID3D11RenderTargetView* rtv, ID3D11DepthStencilView* dsv);

protected:
	virtual void setTileOrigin(S32 xPos, S32 yPos);

public:
	GDrawTexture *getSubstitutionTexture(int textureId);
	void destroySubstitutionTexture(void *destroyCallBackData, GDrawTexture *handle);

public:
	void shutdown();
};