#include <GUITexture.h>
|
| struct | Quad |
| | One quad of the texture, independent of the texture's position and size. More...
|
| |
|
| static void | Register (const CreateGUITextureFunc &createFunction, const DrawQuadFunc &drawQuadFunction) |
| |
| static void | UnregisterDrawQuad () |
| |
| static CGUITexture * | CreateTexture (float posX, float posY, float width, float height, const CTextureInfo &texture) |
| |
| static float | SnapToPixel (float coord, bool subpixel) |
| | Screen coordinate of a texture corner.
|
| |
| static void | DrawQuad (const CRect &coords, KODI::UTILS::COLOR::Color color, CTexture *texture=nullptr, const CRect *texCoords=nullptr, const float depth=1.0, const bool blending=true) |
| |
|
| | CGUITexture (float posX, float posY, float width, float height, const CTextureInfo &texture) |
| |
| | CGUITexture (const CGUITexture &left) |
| |
| bool | CalculateSize () |
| |
| bool | AllocateOnDemand () |
| |
| bool | UpdateAnimFrame (unsigned int currentTime) |
| |
| void | ResetAnimState () |
| |
| virtual void | Allocate () |
| |
| virtual void | Free () |
| | called after our textures have been allocated
|
| |
| virtual void | Begin (KODI::UTILS::COLOR::Color color)=0 |
| | called after our textures have been freed
|
| |
| virtual void | Draw (float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation)=0 |
| |
| virtual void | End ()=0 |
| |
| virtual bool | DrawQuads (const std::vector< Quad > &quads, unsigned int version, const CRect &rect) |
| | Draw the quads at rect with the current clip region and GUI transform applied by the GPU.
|
| |
◆ 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()
◆ DrawQuads()
| virtual bool CGUITexture::DrawQuads |
( |
const std::vector< Quad > & | quads, |
|
|
unsigned int | version, |
|
|
const CRect & | rect ) |
|
inlineprotectedvirtual |
Draw the quads at rect with the current clip region and GUI transform applied by the GPU.
Called between Begin() and End(). The quads only change when version does, so they can be kept in GPU memory while rect moves or resizes. If this returns false, the quads are clipped and transformed on the CPU and passed to Draw() instead.
Reimplemented in CGUITextureGLES.
◆ 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
Reimplemented in CGUITextureGLES.
◆ FreeResources()
| void CGUITexture::FreeResources |
( |
bool | immediately = false | ) |
|
◆ GetDiffuseColor()
Get the diffuse color (info color) associated to this texture.
- Returns
- the infocolor associated to this texture
◆ 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 |
◆ IsLoading()
| bool CGUITexture::IsLoading |
( |
| ) |
const |
|
inline |
◆ OnWindowResize()
| void CGUITexture::OnWindowResize |
( |
| ) |
|
◆ 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()
| void CGUITexture::Render |
( |
int32_t | depthOffset = 0, |
|
|
int32_t | overrideDepth = -1 ) |
◆ ResetAnimState()
| void CGUITexture::ResetAnimState |
( |
| ) |
|
|
protected |
◆ SetAlpha()
| bool CGUITexture::SetAlpha |
( |
unsigned char | alpha | ) |
|
◆ SetAspectRatio()
◆ SetDiffuseColor()
◆ SetDiffuseScalingMethod()
◆ 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 ) |
◆ SetScalingMethod()
◆ SetUseCache()
| void CGUITexture::SetUseCache |
( |
const bool | useCache = true | ) |
|
◆ SetVisible()
| bool CGUITexture::SetVisible |
( |
bool | visible | ) |
|
◆ SetWidth()
| bool CGUITexture::SetWidth |
( |
float | width | ) |
|
◆ SnapToPixel()
| float CGUITexture::SnapToPixel |
( |
float | coord, |
|
|
bool | subpixel ) |
|
static |
Screen coordinate of a texture corner.
- Parameters
-
| coord | the unsnapped screen coordinate |
| subpixel | whether the texture keeps its fractional position |
- Returns
- coord rounded to a whole pixel, or unchanged if subpixel
◆ UnregisterDrawQuad()
| void CGUITexture::UnregisterDrawQuad |
( |
| ) |
|
|
static |
◆ 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_depth
| float CGUITexture::m_depth {0} |
|
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_diffuseScalingMethod
◆ 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_largeInterim
| bool CGUITexture::m_largeInterim {false} |
|
protected |
◆ m_lastMoveTime
| unsigned int CGUITexture::m_lastMoveTime {0} |
|
protected |
◆ m_lastReadyState
| std::optional<bool> CGUITexture::m_lastReadyState |
|
protected |
◆ m_lastScreenRect
| std::optional<CRect> CGUITexture::m_lastScreenRect |
|
protected |
◆ m_lasttime
| uint32_t CGUITexture::m_lasttime |
|
protected |
◆ m_moving
| bool CGUITexture::m_moving {false} |
|
protected |
◆ m_posX
| float CGUITexture::m_posX |
|
protected |
◆ m_posY
| float CGUITexture::m_posY |
|
protected |
◆ m_requestHeight
◆ m_requestWidth
◆ m_scalingMethod
◆ 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 |
◆ REQUEST_SIZE_UNSET
| int CGUITexture::REQUEST_SIZE_UNSET = -1 |
|
staticconstexprprotected |
◆ SUBPIXEL_SETTLE_MS
| unsigned int CGUITexture::SUBPIXEL_SETTLE_MS = 200 |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: