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
"
4
#include "
AGUI2TextureSection.h
"
5
6
#include <
Math/TVector4.h
>
7
8
class
AGUI2Rectangle
:
public
AGUI2Element
9
{
10
public
:
11
AGUI2Rectangle
();
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
30
protected
:
31
AGUI2Material
*
m_pMaterial
;
32
Toshi::TVector4
m_UV1
;
33
Toshi::TVector4
m_UV2
;
34
};
TVector4.h
TFLOAT
float TFLOAT
Definition
Typedefs.h:4
AGUI2Element.h
AGUI2Material.h
AGUI2TextureSection.h
AGUI2Element::AGUI2Element
AGUI2Element()
Definition
AGUI2Element.cpp:13
AGUI2Element::SetDimensions
virtual void SetDimensions(TFLOAT a_fWidth, TFLOAT a_fHeight)
Definition
AGUI2Element.cpp:114
AGUI2Material
Definition
AGUI2Material.h:6
AGUI2Rectangle::m_UV2
Toshi::TVector4 m_UV2
Definition
AGUI2Rectangle.h:33
AGUI2Rectangle::m_UV1
Toshi::TVector4 m_UV1
Definition
AGUI2Rectangle.h:32
AGUI2Rectangle::Create
void Create(TFLOAT a_fWidth, TFLOAT a_fHeight)
Initialises rectangle with it's width and height.
Definition
AGUI2Rectangle.h:25
AGUI2Rectangle::AGUI2Rectangle
AGUI2Rectangle()
Definition
AGUI2Rectangle.cpp:11
AGUI2Rectangle::Render
virtual void Render() override
Definition
AGUI2Rectangle.cpp:16
AGUI2Rectangle::m_pMaterial
AGUI2Material * m_pMaterial
Definition
AGUI2Rectangle.h:31
AGUI2Rectangle::SetTextureSection
void SetTextureSection(AGUI2TextureSection *a_pTexSection)
Sets material and UVs from AGUI2TextureSection.
Definition
AGUI2Rectangle.cpp:35
AGUI2TextureSection
Definition
AGUI2TextureSection.h:8
D:
_dev
OpenBarnyard
Source
OpenBarnyard
Source
GUI
AGUI2Rectangle.h
Generated by
1.13.2