OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2Rectangle.h
Go to the documentation of this file.
1#pragma once
2#include "AGUI2Element.h"
3#include "AGUI2Material.h"
5
6#include <Math/TVector4.h>
7
9{
10public:
12
13 virtual void Render() override;
14
20 void SetTextureSection( AGUI2TextureSection* a_pTexSection );
21
25 void Create( TFLOAT a_fWidth, TFLOAT a_fHeight )
26 {
27 AGUI2Element::SetDimensions( a_fWidth, a_fHeight );
28 }
29
30protected:
32 Toshi::TVector4 m_UV1;
33 Toshi::TVector4 m_UV2;
34};
float TFLOAT
Definition Typedefs.h:4
virtual void SetDimensions(TFLOAT a_fWidth, TFLOAT a_fHeight)
Toshi::TVector4 m_UV2
Toshi::TVector4 m_UV1
void Create(TFLOAT a_fWidth, TFLOAT a_fHeight)
Initialises rectangle with it's width and height.
virtual void Render() override
AGUI2Material * m_pMaterial
void SetTextureSection(AGUI2TextureSection *a_pTexSection)
Sets material and UVs from AGUI2TextureSection.