Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
CTextureBundleXBT Class Reference

#include <TextureBundleXBT.h>

Public Member Functions

 CTextureBundleXBT ()
 
 CTextureBundleXBT (bool themeBundle)
 
 ~CTextureBundleXBT ()
 
void SetThemeBundle (bool themeBundle)
 
bool HasFile (const std::string &Filename)
 
std::vector< std::string > GetTexturesFromPath (const std::string &path)
 
bool LoadTexture (const std::string &filename, std::unique_ptr< CTexture > &texture, int &width, int &height)
 See CTextureBundle::LoadTexture. More...
 
bool LoadAnim (const std::string &filename, std::vector< std::pair< std::unique_ptr< CTexture >, int > > &textures, int &width, int &height, int &nLoops)
 See CTextureBundle::LoadAnim. More...
 
void CloseBundle ()
 

Static Public Member Functions

static std::string Normalize (std::string name)
 
static std::vector< uint8_tUnpackFrame (const CXBTFReader &reader, const CXBTFFrame &frame)
 

Constructor & Destructor Documentation

◆ CTextureBundleXBT() [1/2]

CTextureBundleXBT::CTextureBundleXBT ( )

◆ CTextureBundleXBT() [2/2]

CTextureBundleXBT::CTextureBundleXBT ( bool  themeBundle)
explicit

◆ ~CTextureBundleXBT()

CTextureBundleXBT::~CTextureBundleXBT ( void  )

Member Function Documentation

◆ CloseBundle()

void CTextureBundleXBT::CloseBundle ( )

◆ GetTexturesFromPath()

std::vector< std::string > CTextureBundleXBT::GetTexturesFromPath ( const std::string &  path)

◆ HasFile()

bool CTextureBundleXBT::HasFile ( const std::string &  Filename)

◆ LoadAnim()

bool CTextureBundleXBT::LoadAnim ( const std::string &  filename,
std::vector< std::pair< std::unique_ptr< CTexture >, int > > &  textures,
int width,
int height,
int nLoops 
)

◆ LoadTexture()

bool CTextureBundleXBT::LoadTexture ( const std::string &  filename,
std::unique_ptr< CTexture > &  texture,
int width,
int height 
)

◆ Normalize()

std::string CTextureBundleXBT::Normalize ( std::string  name)
static

◆ SetThemeBundle()

void CTextureBundleXBT::SetThemeBundle ( bool  themeBundle)

◆ UnpackFrame()

std::vector< uint8_t > CTextureBundleXBT::UnpackFrame ( const CXBTFReader reader,
const CXBTFFrame frame 
)
static
Todo:
Change return to std::optional<std::vector<uint8_t>>> when c++17 is allowed

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