#include <factory.hpp>
Inheritance diagram for BlitterFactoryBase:

Public Member Functions | |
| BlitterFactoryBase () | |
| virtual | ~BlitterFactoryBase () |
| virtual const char * | GetDescription ()=0 |
| Get a nice description of the blitter-class. | |
| virtual Blitter * | CreateInstance ()=0 |
| Create an instance of this Blitter-class. | |
Static Public Member Functions | |
| static Blitter * | SelectBlitter (const char *name) |
| Find the requested blitter and return his class. | |
| static Blitter * | GetCurrentBlitter () |
| Get the current active blitter (always set by calling SelectBlitter). | |
| static char * | GetBlittersInfo (char *p, const char *last) |
Protected Member Functions | |
| void | RegisterBlitter (const char *name) |
| Register a blitter internally, based on his name. | |
Private Types | |
|
typedef std::map< const char *, BlitterFactoryBase *, StringCompare > | Blitters |
Static Private Member Functions | |
| static Blitters & | GetBlitters () |
| static Blitter ** | GetActiveBlitter () |
Private Attributes | |
| const char * | name |
Data Structures | |
| struct | StringCompare |
Definition at line 20 of file factory.hpp.
| void BlitterFactoryBase::RegisterBlitter | ( | const char * | name | ) | [inline, protected] |
Register a blitter internally, based on his name.
| name | the name of the blitter. |
Definition at line 51 of file factory.hpp.
References assert, GetBlitters(), and P.
Referenced by BlitterFactory< FBlitter_8bppOptimized >::BlitterFactory().
| static Blitter* BlitterFactoryBase::SelectBlitter | ( | const char * | name | ) | [inline, static] |
Find the requested blitter and return his class.
| name | the blitter to select. |
Definition at line 80 of file factory.hpp.
References DEBUG, GetActiveBlitter(), GetBlitters(), and StrEmpty().
Referenced by VideoDriver_Null::Start(), and ttd_main().
1.4.7