Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CGUITextureD3D Class Reference

#include <GUITextureD3D.h>

Inheritance diagram for CGUITextureD3D:
CGUITextureBase

Public Member Functions

 CGUITextureD3D (float posX, float posY, float width, float height, const CTextureInfo &texture)
 
 ~CGUITextureD3D ()
 
- Public Member Functions inherited from CGUITextureBase
 CGUITextureBase (float posX, float posY, float width, float height, const CTextureInfo &texture)
 
 CGUITextureBase (const CGUITextureBase &left)
 
virtual ~CGUITextureBase (void)
 
bool Process (unsigned int currentTime)
 
void Render ()
 
void DynamicResourceAlloc (bool bOnOff)
 
bool AllocResources ()
 
void FreeResources (bool immediately=false)
 
void SetInvalid ()
 
bool SetVisible (bool visible)
 
bool SetAlpha (unsigned char alpha)
 
bool SetDiffuseColor (UTILS::Color color)
 
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 CRectGetRenderRect () const
 
bool IsLazyLoaded () const
 
bool HitTest (const CPoint &point) const
 
bool IsAllocated () const
 
bool FailedToAlloc () const
 
bool ReadyToRender () const
 

Static Public Member Functions

static void DrawQuad (const CRect &coords, UTILS::Color color, CBaseTexture *texture=NULL, const CRect *texCoords=NULL)
 

Protected Member Functions

void Begin (UTILS::Color color)
 called after our textures have been freed More...
 
void Draw (float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation)
 
void End ()
 
- Protected Member Functions inherited from CGUITextureBase
bool CalculateSize ()
 
void LoadDiffuseImage ()
 
bool AllocateOnDemand ()
 
bool UpdateAnimFrame (unsigned int currentTime)
 
void Render (float left, float top, float bottom, float right, 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...
 

Additional Inherited Members

- Protected Types inherited from CGUITextureBase
enum  ALLOCATE_TYPE {
  NO = 0 , NORMAL , LARGE , NORMAL_FAILED ,
  LARGE_FAILED
}
 
- Static Protected Member Functions inherited from CGUITextureBase
static void OrientateTexture (CRect &rect, float width, float height, int orientation)
 
- Protected Attributes inherited from CGUITextureBase
bool m_visible
 
UTILS::Color m_diffuseColor
 
float m_posX
 
float m_posY
 
float m_width
 
float m_height
 
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
 

Constructor & Destructor Documentation

◆ CGUITextureD3D()

CGUITextureD3D::CGUITextureD3D ( float  posX,
float  posY,
float  width,
float  height,
const CTextureInfo texture 
)

◆ ~CGUITextureD3D()

CGUITextureD3D::~CGUITextureD3D ( )

Member Function Documentation

◆ Begin()

void CGUITextureD3D::Begin ( UTILS::Color  color)
protectedvirtual

called after our textures have been freed

Reimplemented from CGUITextureBase.

◆ Draw()

void CGUITextureD3D::Draw ( float *  x,
float *  y,
float *  z,
const CRect texture,
const CRect diffuse,
int  orientation 
)
protectedvirtual

Implements CGUITextureBase.

◆ DrawQuad()

void CGUITextureD3D::DrawQuad ( const CRect coords,
UTILS::Color  color,
CBaseTexture texture = NULL,
const CRect texCoords = NULL 
)
static

◆ End()

void CGUITextureD3D::End ( )
protectedvirtual

Reimplemented from CGUITextureBase.


The documentation for this class was generated from the following files: