(svn r22397) -Document: some tidbits of the blitter code

This commit is contained in:
rubidium
2011-05-01 10:15:33 +00:00
parent 70c7ec30b1
commit 485c7cd99e
20 changed files with 91 additions and 52 deletions

View File

@@ -27,16 +27,24 @@ bool QZ_CanDisplay8bpp();
*/
class BlitterFactoryBase {
private:
const char *name;
const char *name; ///< The name of the blitter factory.
typedef std::map<const char *, BlitterFactoryBase *, StringCompare> Blitters;
typedef std::map<const char *, BlitterFactoryBase *, StringCompare> Blitters; ///< Map of blitter factories.
/**
* Get the map with currently known blitters.
* @return The known blitters.
*/
static Blitters &GetBlitters()
{
static Blitters &s_blitters = *new Blitters();
return s_blitters;
}
/**
* Get the currently active blitter.
* @return The currently active blitter.
*/
static Blitter **GetActiveBlitter()
{
static Blitter *s_blitter = NULL;
@@ -121,7 +129,12 @@ public:
return *GetActiveBlitter();
}
/**
* Fill a buffer with information about the blitters.
* @param p The buffer to fill.
* @param last The last element of the buffer.
* @return p The location till where we filled the buffer.
*/
static char *GetBlittersInfo(char *p, const char *last)
{
p += seprintf(p, last, "List of blitters:\n");