Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CTextureBundle Class Reference

#include <TextureBundle.h>

Public Member Functions

 CTextureBundle ()
 
 CTextureBundle (bool useXBT)
 
 ~CTextureBundle ()=default
 
void SetThemeBundle (bool themeBundle)
 
bool HasFile (const std::string &Filename)
 
std::vector< std::string > GetTexturesFromPath (const std::string &path)
 
std::optional< CTextureBundleXBT::TextureLoadTexture (const std::string &filename)
 Load texture from bundle.
 
std::optional< CTextureBundleXBT::AnimationLoadAnim (const std::string &filename)
 Load animation from bundle.
 
void Close ()
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ CTextureBundle() [1/2]

CTextureBundle::CTextureBundle ( )

◆ CTextureBundle() [2/2]

CTextureBundle::CTextureBundle ( bool useXBT)
explicit

◆ ~CTextureBundle()

CTextureBundle::~CTextureBundle ( )
default

Member Function Documentation

◆ Close()

void CTextureBundle::Close ( )

◆ GetTexturesFromPath()

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

◆ HasFile()

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

◆ LoadAnim()

std::optional< CTextureBundleXBT::Animation > CTextureBundle::LoadAnim ( const std::string & filename)

Load animation from bundle.

Parameters
[in]filenamename of the animation to load
Returns
std::optional<CTextureBundleXBT::Animation> if animation was loaded

◆ LoadTexture()

std::optional< CTextureBundleXBT::Texture > CTextureBundle::LoadTexture ( const std::string & filename)

Load texture from bundle.

Parameters
[in]filenamename of the texture to load
Returns
std::optional<CTextureBundleXBT::Texture> if texture was loaded

◆ Normalize()

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

◆ SetThemeBundle()

void CTextureBundle::SetThemeBundle ( bool themeBundle)

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