OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2TextureSection.cpp
Go to the documentation of this file.
1#include "pch.h"
3
4//-----------------------------------------------------------------------------
5// Enables memory debugging.
6// Note: Should be the last include!
7//-----------------------------------------------------------------------------
9
11
13{
14 m_pMaterial = a_pMaterial;
15}
16
18{
19 return m_szName;
20}
21
23{
24 return m_szTextureFile;
25}
26
28{
29 return m_pMaterial;
30}
31
33{
34 return m_UV1;
35}
36
38{
39 return m_UV2;
40}
41
43{
44 return TMath::Abs( TFLOAT( m_iPoint2X - m_iPoint1X ) );
45}
46
48{
49 return TMath::Abs( TFLOAT( m_iPoint2Y - m_iPoint1Y ) );
50}
51
53{
54 return m_iPoint1X;
55}
56
58{
59 return m_iPoint1Y;
60}
61
63{
64 return m_iPoint2X;
65}
66
68{
69 return m_iPoint2Y;
70}
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
char TCHAR
Definition Typedefs.h:20
float TFLOAT
Definition Typedefs.h:4
int TINT
Definition Typedefs.h:7
TFORCEINLINE TFLOAT Abs(TFLOAT fVal)
Definition TMathInline.h:63
AGUI2Material * GetMaterial()
Toshi::TVector4 & GetUVPoint2()
void SetMaterial(AGUI2Material *a_pMaterial)
const TCHAR * GetName() const
Toshi::TVector4 & GetUVPoint1()
const TCHAR * GetTextureFile() const