Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBImageLoader Class Referenceabstract

TBImageloader is a class used to load skin images. More...

#include <tb_bitmap_fragment.h>

Public Member Functions

virtual int Width ()=0
 Return the width of the loaded bitmap. More...
 
virtual int Height ()=0
 Return the height of the loaded bitmap. More...
 
virtual uint32_t * Data ()=0
 Return the data of the loaded bitmap. More...
 

Static Public Member Functions

static TBImageLoaderCreateFromFile (const TBStr &filename, float dpi)
 Static method used to create an image loader. More...
 

Detailed Description

TBImageloader is a class used to load skin images.

It can be implemented in any way the system wants, but the system has to provide a image loader capable of handling all image formats used in the skin.

Member Function Documentation

static TBImageLoader* tb::TBImageLoader::CreateFromFile ( const TBStr filename,
float  dpi 
)
static

Static method used to create an image loader.

The system must implement this function and create an implementation of the TBImageLoader interface.

virtual uint32_t* tb::TBImageLoader::Data ( )
pure virtual

Return the data of the loaded bitmap.

This data should always be in 32bit RGBA format.

virtual int tb::TBImageLoader::Height ( )
pure virtual

Return the height of the loaded bitmap.

virtual int tb::TBImageLoader::Width ( )
pure virtual

Return the width of the loaded bitmap.


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