Hasty Badger
Small UI library (a branch of Turbo Badger)
|
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 TBImageLoader * | CreateFromFile (const TBStr &filename, float dpi) |
Static method used to create an image loader. More... | |
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.
|
static |
Static method used to create an image loader.
The system must implement this function and create an implementation of the TBImageLoader interface.
|
pure virtual |
Return the data of the loaded bitmap.
This data should always be in 32bit RGBA format.
|
pure virtual |
Return the height of the loaded bitmap.
|
pure virtual |
Return the width of the loaded bitmap.