|
4 | 4 | #include "TKernel/TManagedPointer.h" |
5 | 5 | #include "TGui/TGUIDisplayContext.h" |
6 | 6 | #include "TRender/TRenderInterface.h" |
7 | | -#include "PGUIRenderer/PGUITRFontFactory.h" |
| 7 | +#include "TRender/TResource.h" |
8 | 8 |
|
9 | 9 | class PGUITRTextureFactory; |
| 10 | +class PGUITRFontFactory; |
10 | 11 |
|
11 | 12 | class PGUIRENDERER_EXPORTS PGUITRDisplayContext : Toshi::TGUIDisplayContext |
12 | 13 | { |
13 | 14 | public: |
| 15 | + |
| 16 | + PGUITRDisplayContext(); |
| 17 | + |
14 | 18 | void Create(); |
15 | 19 | void Create(Toshi::TManagedPtr<Toshi::TRenderInterface> a_MPRenderer); |
16 | 20 | void Create(Toshi::TManagedPtr<Toshi::TRenderInterface> a_MPRenderer, PGUITRTextureFactory *a_pTextureFactory, PGUITRFontFactory *a_pFontFactory); |
@@ -40,15 +44,53 @@ class PGUIRENDERER_EXPORTS PGUITRDisplayContext : Toshi::TGUIDisplayContext |
40 | 44 | virtual void Imp_DrawFilledRectangle(int a_iX, int a_iY, int a_iWidth, int a_iHeight, const Toshi::TGUIColour &m_rColour); |
41 | 45 | virtual void Imp_DrawOutlineRectangle(int a_iX, int a_iY, int a_iWidth, int a_iHeight, const Toshi::TGUIColour &m_rColour); |
42 | 46 |
|
| 47 | +public: |
| 48 | + // $PGUIRenderer: FUNCTION 10005a10 |
| 49 | + virtual TFLOAT GetBackDepth() |
| 50 | + { |
| 51 | + return -15.0f; |
| 52 | + } |
| 53 | + // $PGUIRenderer: FUNCTION 10005a00 |
| 54 | + virtual TFLOAT GetFrontDepth() |
| 55 | + { |
| 56 | + return -6551.5f; |
| 57 | + } |
| 58 | + // $PGUIRenderer: FUNCTION 100059f0 |
| 59 | + virtual TFLOAT GetDepthIncrement() |
| 60 | + { |
| 61 | + return -1.0f; |
| 62 | + } |
| 63 | + |
| 64 | +protected: |
| 65 | + void RenderTexture(const Toshi::TGUITextureSection *a_pTextureSection, const Toshi::TGUIColour &a_rColour, int param_4, int param_5, int param_6, int param_7, int param_8); |
| 66 | + |
43 | 67 | public: |
44 | 68 | // $PGUIRenderer: FUNCTION 10005c20 |
45 | 69 | Toshi::TRenderInterface *GetRenderInterface() const |
46 | 70 | { |
47 | | - return m_MPRenderer; |
| 71 | + return m_pRenderer; |
| 72 | + } |
| 73 | + // $PGUIRenderer: FUNCTION 10005bd0 |
| 74 | + PGUITRTextureFactory *GetTextureFactory() |
| 75 | + { |
| 76 | + return m_pTextureFactory; |
| 77 | + } |
| 78 | + // $PGUIRenderer: FUNCTION 10005bf0 |
| 79 | + TFLOAT GetScaleX() const |
| 80 | + { |
| 81 | + return m_fScaleX; |
| 82 | + } |
| 83 | + // $PGUIRenderer: FUNCTION 10005be0 |
| 84 | + TFLOAT GetScaleY() const |
| 85 | + { |
| 86 | + return m_fScaleY; |
48 | 87 | } |
49 | 88 |
|
50 | 89 | private: |
51 | | - Toshi::TManagedPtr<Toshi::TRenderInterface> m_MPRenderer; // 0x210 |
52 | | - PGUITRTextureFactory *m_pTextureFactory; // 0x214 |
53 | | - PGUITRFontFactory *m_pFontFactory; // 0x218 |
| 90 | + Toshi::TRenderInterface *m_pRenderer; // 0x210 |
| 91 | + PGUITRTextureFactory *m_pTextureFactory; // 0x214 |
| 92 | + PGUITRFontFactory *m_pFontFactory; // 0x218 |
| 93 | + Toshi::TResource *m_pGUIRoot; // 0x220 |
| 94 | + TFLOAT m_fScaleX; // 0x224 |
| 95 | + TFLOAT m_fScaleY; // 0x228 |
54 | 96 | }; |
0 commit comments