OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2TextureSection.h
Go to the documentation of this file.
1#pragma once
2#include "AGUI2Material.h"
3
4#include <Math/TVector4.h>
5#include <File/TTRB.h>
6
8{
9public:
12
13 void SetMaterial( AGUI2Material* a_pMaterial );
14
15 const TCHAR* GetName() const;
16 const TCHAR* GetTextureFile() const;
18
19 Toshi::TVector4& GetUVPoint1();
20 Toshi::TVector4& GetUVPoint2();
21
22 TFLOAT GetWidth() const;
23 TFLOAT GetHeight() const;
24
25 TINT GetPoint1X() const;
26 TINT GetPoint1Y() const;
27 TINT GetPoint2X() const;
28 TINT GetPoint2Y() const;
29
30private:
31 const TCHAR* m_szName;
32 const TCHAR* m_szTextureFile;
33 TINT m_iPoint1X;
34 TINT m_iPoint1Y;
35 TINT m_iPoint2X;
36 TINT m_iPoint2Y;
37 AGUI2Material* m_pMaterial;
38 Toshi::TVector4 m_UV1;
39 Toshi::TVector4 m_UV2;
40};
TRB (Toshi Relocatable Binary) resource system for the Toshi engine.
char TCHAR
Definition Typedefs.h:20
float TFLOAT
Definition Typedefs.h:4
int TINT
Definition Typedefs.h:7
AGUI2Material * GetMaterial()
~AGUI2TextureSection()=default
AGUI2TextureSection()=default
Toshi::TVector4 & GetUVPoint2()
void SetMaterial(AGUI2Material *a_pMaterial)
const TCHAR * GetName() const
Toshi::TVector4 & GetUVPoint1()
const TCHAR * GetTextureFile() const