Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GUITextureGLES.h>
Public Member Functions | |
CGUITextureGLES (float posX, float posY, float width, float height, const CTextureInfo &texture) | |
~CGUITextureGLES () override=default | |
CGUITextureGLES * | Clone () const override |
Public Member Functions inherited from CGUITexture | |
virtual | ~CGUITexture ()=default |
bool | Process (unsigned int currentTime) |
void | Render (int32_t depthOffset=0, int32_t overrideDepth=-1) |
void | DynamicResourceAlloc (bool bOnOff) |
bool | AllocResources () |
void | FreeResources (bool immediately=false) |
void | SetInvalid () |
bool | SetVisible (bool visible) |
bool | SetAlpha (unsigned char alpha) |
bool | SetDiffuseColor (KODI::UTILS::COLOR::Color color, const CGUIListItem *item=nullptr) |
bool | SetPosition (float x, float y) |
bool | SetWidth (float width) |
bool | SetHeight (float height) |
bool | SetFileName (const std::string &filename) |
void | SetUseCache (const bool useCache=true) |
bool | SetAspectRatio (const CAspectRatio &aspect) |
const std::string & | GetFileName () const |
float | GetTextureWidth () const |
float | GetTextureHeight () const |
float | GetWidth () const |
float | GetHeight () const |
float | GetXPosition () const |
float | GetYPosition () const |
int | GetOrientation () const |
const CRect & | GetRenderRect () const |
bool | IsLazyLoaded () const |
KODI::GUILIB::GUIINFO::CGUIInfoColor | GetDiffuseColor () const |
Get the diffuse color (info color) associated to this texture. | |
bool | HitTest (const CPoint &point) const |
bool | IsAllocated () const |
bool | FailedToAlloc () const |
bool | ReadyToRender () const |
Static Public Member Functions | |
static void | Register () |
static CGUITexture * | CreateTexture (float posX, float posY, float width, float height, const CTextureInfo &texture) |
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) |
Static Public Member Functions inherited from CGUITexture | |
static void | Register (const CreateGUITextureFunc &createFunction, const DrawQuadFunc &drawQuadFunction) |
static CGUITexture * | CreateTexture (float posX, float posY, float width, float height, const CTextureInfo &texture) |
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) |
Protected Member Functions | |
void | Begin (KODI::UTILS::COLOR::Color color) override |
called after our textures have been freed | |
void | Draw (float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation) override |
void | End () override |
Protected Member Functions inherited from CGUITexture | |
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 | 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 | |
Additional Inherited Members | |
Protected Types inherited from CGUITexture | |
enum | ALLOCATE_TYPE { NO = 0 , NORMAL , LARGE , NORMAL_FAILED , LARGE_FAILED } |
Static Protected Member Functions inherited from CGUITexture | |
static void | OrientateTexture (CRect &rect, float width, float height, int orientation) |
Protected Attributes inherited from CGUITexture | |
bool | m_visible |
KODI::UTILS::COLOR::Color | m_diffuseColor |
float | m_posX |
float | m_posY |
float | m_width |
float | m_height |
float | m_depth {0} |
CRect | m_vertex |
bool | m_invalid |
bool | m_use_cache |
unsigned char | m_alpha |
float | m_frameWidth |
float | m_frameHeight |
float | m_texCoordsScaleU |
float | m_texCoordsScaleV |
int | m_currentLoop |
unsigned int | m_currentFrame |
uint32_t | m_lasttime |
float | m_diffuseU |
float | m_diffuseV |
float | m_diffuseScaleU |
float | m_diffuseScaleV |
CPoint | m_diffuseOffset |
bool | m_allocateDynamically |
ALLOCATE_TYPE | m_isAllocated |
CTextureInfo | m_info |
CAspectRatio | m_aspect |
CTextureArray | m_diffuse |
CTextureArray | m_texture |
CGUITextureGLES::CGUITextureGLES | ( | float | posX, |
float | posY, | ||
float | width, | ||
float | height, | ||
const CTextureInfo & | texture ) |
|
overridedefault |
|
overrideprotectedvirtual |
called after our textures have been freed
Implements CGUITexture.
|
overridevirtual |
Implements CGUITexture.
|
static |
|
overrideprotectedvirtual |
Implements CGUITexture.
|
static |
|
overrideprotectedvirtual |
Implements CGUITexture.
|
static |