@@ -42,12 +42,24 @@ class TSpriteMesh : public TMesh
4242 virtual void Unlock (TUSHORT a_iX, TUSHORT a_iY);
4343 virtual TBOOL Lock ();
4444
45+ // $TSpriteShaderD3D: FUNCTION 10001f40
46+ TVertexPoolResourceInterface *GetVertexPool ()
47+ {
48+ return m_pVertexPool;
49+ }
50+
4551 // $TSpriteShaderD3D: FUNCTION 10001f20
4652 void SetVertexPool (TVertexPoolResourceInterface *a_pVertexPool)
4753 {
4854 m_pVertexPool = a_pVertexPool;
4955 }
5056
57+ // $TSpriteShaderD3D: FUNCTION 10001f30
58+ TIndexPoolResourceInterface *GetIndexPool ()
59+ {
60+ return m_pIndexPool;
61+ }
62+
5163 // $TSpriteShaderD3D: FUNCTION 10001f10
5264 void SetIndexPool (TIndexPoolResourceInterface *a_pIndexPool)
5365 {
@@ -59,6 +71,16 @@ class TSpriteMesh : public TMesh
5971 return m_iNumIndices;
6072 }
6173
74+ TUSHORT GetDeltaNumIndices ()
75+ {
76+ return m_iDeltaNumIndices;
77+ }
78+
79+ TUSHORT GetDeltaNumVertices ()
80+ {
81+ return m_iDeltaNumVertices;
82+ }
83+
6284 TUSHORT GetNumVertices ()
6385 {
6486 return m_iNumVertices;
@@ -105,6 +127,11 @@ class TSpriteMaterial : public TMaterial
105127 m_pTexture = a_pTexture;
106128 }
107129
130+ TINT GetBlendMode ()
131+ {
132+ return m_eBlendMode;
133+ }
134+
108135protected:
109136 TTextureResource *m_pTexture; // 0x40
110137 TINT m_eBlendMode; // 0x44
@@ -138,10 +165,6 @@ class TSpriteShader : public TShader
138165 m_usMaxStaticVertices = 9216 ;
139166 m_unkFlags = m_unkFlags & 0x80 | 0x4E ;
140167 m_pMaterial = TNULL;
141- m_colorR = -1 ;
142- m_colorG = -1 ;
143- m_colorB = -1 ;
144- m_colorA = -1 ;
145168 }
146169
147170 virtual TBOOL Create ();
@@ -177,10 +200,7 @@ class TSpriteShader : public TShader
177200protected:
178201 TINT m_unkFlags; // 0x30
179202 TSpriteMaterial *m_pMaterial; // 0x4C
180- TCHAR m_colorR; // 0x50
181- TCHAR m_colorG; // 0x51
182- TCHAR m_colorB; // 0x52
183- TCHAR m_colorA; // 0x53
203+ TGUIColour m_oColour; // 0x50
184204 TVector2 m_vPos1; // 0x54
185205 TVector2 m_vPos2; // 0x5C
186206 TVector2 m_vUV1; // 0x64
@@ -191,6 +211,7 @@ class TSpriteShader : public TShader
191211 TVertexPoolResourceInterface::LockBuffer m_VertexLockBuffer; // 0xE0
192212 Vertex m_aVertices[4 ]; // 0xE8
193213 TMatrix44 m_oModelViewMatrix; // 0x8C
214+ TIndexPoolResourceInterface::LockBuffer m_IndexLockBuffer; // 0x108
194215 TUSHORT m_iNumIndices; // 0x110
195216 TUSHORT m_iNumVertices; // 0x114
196217 TSpriteMaterial *m_pLineMaterial; // 0x118
0 commit comments