#include <GUITexture.h>
|
| | CGUITexture (float posX, float posY, float width, float height, const CTextureInfo &texture) |
| |
| | CGUITexture (const CGUITexture &left) |
| |
| bool | CalculateSize () |
| |
| void | LoadDiffuseImage () |
| |
| bool | AllocateOnDemand () |
| |
| bool | UpdateAnimFrame (unsigned int currentTime) |
| |
| void | Render (float left, float top, float right, float bottom, float u1, float v1, float u2, float v2, float u3, float v3) |
| |
| void | ResetAnimState () |
| |
| virtual void | Allocate () |
| |
| virtual void | Free () |
| | called after our textures have been allocated More...
|
| |
| virtual void | Begin (UTILS::COLOR::Color color)=0 |
| | called after our textures have been freed More...
|
| |
| virtual void | Draw (float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation)=0 |
| |
| virtual void | End ()=0 |
| |
◆ ALLOCATE_TYPE
| Enumerator |
|---|
| NO | |
| NORMAL | |
| LARGE | |
| NORMAL_FAILED | |
| LARGE_FAILED | |
◆ ~CGUITexture()
| virtual CGUITexture::~CGUITexture |
( |
| ) |
|
|
virtualdefault |
◆ CGUITexture() [1/2]
| CGUITexture::CGUITexture |
( |
float |
posX, |
|
|
float |
posY, |
|
|
float |
width, |
|
|
float |
height, |
|
|
const CTextureInfo & |
texture |
|
) |
| |
|
protected |
◆ CGUITexture() [2/2]
◆ Allocate()
| virtual void CGUITexture::Allocate |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ AllocateOnDemand()
| bool CGUITexture::AllocateOnDemand |
( |
| ) |
|
|
protected |
◆ AllocResources()
| bool CGUITexture::AllocResources |
( |
| ) |
|
◆ Begin()
◆ CalculateSize()
| bool CGUITexture::CalculateSize |
( |
| ) |
|
|
protected |
◆ Clone()
◆ CreateTexture()
| CGUITexture * CGUITexture::CreateTexture |
( |
float |
posX, |
|
|
float |
posY, |
|
|
float |
width, |
|
|
float |
height, |
|
|
const CTextureInfo & |
texture |
|
) |
| |
|
static |
◆ Draw()
| virtual void CGUITexture::Draw |
( |
float * |
x, |
|
|
float * |
y, |
|
|
float * |
z, |
|
|
const CRect & |
texture, |
|
|
const CRect & |
diffuse, |
|
|
int |
orientation |
|
) |
| |
|
protectedpure virtual |
◆ DrawQuad()
◆ DynamicResourceAlloc()
| void CGUITexture::DynamicResourceAlloc |
( |
bool |
bOnOff | ) |
|
◆ End()
| virtual void CGUITexture::End |
( |
| ) |
|
|
protectedpure virtual |
◆ FailedToAlloc()
| bool CGUITexture::FailedToAlloc |
( |
| ) |
const |
|
inline |
◆ Free()
| virtual void CGUITexture::Free |
( |
| ) |
|
|
inlineprotectedvirtual |
called after our textures have been allocated
◆ FreeResources()
| void CGUITexture::FreeResources |
( |
bool |
immediately = false | ) |
|
◆ GetFileName()
| const std::string & CGUITexture::GetFileName |
( |
| ) |
const |
|
inline |
◆ GetHeight()
| float CGUITexture::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetOrientation()
| int CGUITexture::GetOrientation |
( |
| ) |
const |
◆ GetRenderRect()
| const CRect & CGUITexture::GetRenderRect |
( |
| ) |
const |
|
inline |
◆ GetTextureHeight()
| float CGUITexture::GetTextureHeight |
( |
| ) |
const |
|
inline |
◆ GetTextureWidth()
| float CGUITexture::GetTextureWidth |
( |
| ) |
const |
|
inline |
◆ GetWidth()
| float CGUITexture::GetWidth |
( |
| ) |
const |
|
inline |
◆ GetXPosition()
| float CGUITexture::GetXPosition |
( |
| ) |
const |
|
inline |
◆ GetYPosition()
| float CGUITexture::GetYPosition |
( |
| ) |
const |
|
inline |
◆ HitTest()
| bool CGUITexture::HitTest |
( |
const CPoint & |
point | ) |
const |
|
inline |
◆ IsAllocated()
| bool CGUITexture::IsAllocated |
( |
| ) |
const |
|
inline |
◆ IsLazyLoaded()
| bool CGUITexture::IsLazyLoaded |
( |
| ) |
const |
|
inline |
◆ LoadDiffuseImage()
| void CGUITexture::LoadDiffuseImage |
( |
| ) |
|
|
protected |
◆ OrientateTexture()
| void CGUITexture::OrientateTexture |
( |
CRect & |
rect, |
|
|
float |
width, |
|
|
float |
height, |
|
|
int |
orientation |
|
) |
| |
|
staticprotected |
◆ Process()
| bool CGUITexture::Process |
( |
unsigned int |
currentTime | ) |
|
◆ ReadyToRender()
| bool CGUITexture::ReadyToRender |
( |
| ) |
const |
◆ Register()
◆ Render() [1/2]
- Todo:
- The diffuse coloring applies to all vertices, which will look weird for stuff with borders, as will the -ve height/width for flipping
◆ Render() [2/2]
| void CGUITexture::Render |
( |
float |
left, |
|
|
float |
top, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
u1, |
|
|
float |
v1, |
|
|
float |
u2, |
|
|
float |
v2, |
|
|
float |
u3, |
|
|
float |
v3 |
|
) |
| |
|
protected |
◆ ResetAnimState()
| void CGUITexture::ResetAnimState |
( |
| ) |
|
|
protected |
◆ SetAlpha()
| bool CGUITexture::SetAlpha |
( |
unsigned char |
alpha | ) |
|
◆ SetAspectRatio()
◆ SetDiffuseColor()
◆ SetFileName()
| bool CGUITexture::SetFileName |
( |
const std::string & |
filename | ) |
|
◆ SetHeight()
| bool CGUITexture::SetHeight |
( |
float |
height | ) |
|
◆ SetInvalid()
| void CGUITexture::SetInvalid |
( |
| ) |
|
◆ SetPosition()
| bool CGUITexture::SetPosition |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
◆ SetUseCache()
| void CGUITexture::SetUseCache |
( |
const bool |
useCache = true | ) |
|
◆ SetVisible()
| bool CGUITexture::SetVisible |
( |
bool |
visible | ) |
|
◆ SetWidth()
| bool CGUITexture::SetWidth |
( |
float |
width | ) |
|
◆ UpdateAnimFrame()
| bool CGUITexture::UpdateAnimFrame |
( |
unsigned int |
currentTime | ) |
|
|
protected |
◆ m_allocateDynamically
| bool CGUITexture::m_allocateDynamically |
|
protected |
◆ m_alpha
| unsigned char CGUITexture::m_alpha |
|
protected |
◆ m_aspect
◆ m_currentFrame
| unsigned int CGUITexture::m_currentFrame |
|
protected |
◆ m_currentLoop
| int CGUITexture::m_currentLoop |
|
protected |
◆ m_diffuse
◆ m_diffuseColor
◆ m_diffuseOffset
| CPoint CGUITexture::m_diffuseOffset |
|
protected |
◆ m_diffuseScaleU
| float CGUITexture::m_diffuseScaleU |
|
protected |
◆ m_diffuseScaleV
| float CGUITexture::m_diffuseScaleV |
|
protected |
◆ m_diffuseU
| float CGUITexture::m_diffuseU |
|
protected |
◆ m_diffuseV
| float CGUITexture::m_diffuseV |
|
protected |
◆ m_frameHeight
| float CGUITexture::m_frameHeight |
|
protected |
◆ m_frameWidth
| float CGUITexture::m_frameWidth |
|
protected |
◆ m_height
| float CGUITexture::m_height |
|
protected |
◆ m_info
◆ m_invalid
| bool CGUITexture::m_invalid |
|
protected |
◆ m_isAllocated
◆ m_lasttime
| uint32_t CGUITexture::m_lasttime |
|
protected |
◆ m_posX
| float CGUITexture::m_posX |
|
protected |
◆ m_posY
| float CGUITexture::m_posY |
|
protected |
◆ m_texCoordsScaleU
| float CGUITexture::m_texCoordsScaleU |
|
protected |
◆ m_texCoordsScaleV
| float CGUITexture::m_texCoordsScaleV |
|
protected |
◆ m_texture
◆ m_use_cache
| bool CGUITexture::m_use_cache |
|
protected |
◆ m_vertex
| CRect CGUITexture::m_vertex |
|
protected |
◆ m_visible
| bool CGUITexture::m_visible |
|
protected |
◆ m_width
| float CGUITexture::m_width |
|
protected |
The documentation for this class was generated from the following files: