mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 07:27:20 +00:00
Notably also adds some metadata files for NixOS * add support for linux clang cross compiles * add linux clang instructions * un-capitalize Mob.horse.* * update the description in flake.nix --------- Co-authored-by: Loki <lokirautio@gmail.com>
31 lines
1 KiB
C++
31 lines
1 KiB
C++
#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();
|
|
};
|