#include <SurfaceCache.h>
Öffentliche Methoden | |
| ~SurfaceCache (void) | |
| Destruktor. | |
| void | refresh () |
| refresh | |
| long | addSurface (Texture &texture) |
| addSurface | |
| long | addSurface (Texture &texture, LightMap *lightMap, BYTE intensity) |
| addSurface | |
| long | updateSurface (long sid, Texture &texture) |
| updateSurface | |
| long | updateSurface (long sid, Texture &texture, LightMap *lightMap, BYTE intensity) |
| updateSurface | |
| Surface * | getSurface (long sid) |
| getSurface | |
| int | getCount (void) |
| getCount | |
Öffentliche, statische Methoden | |
| static SurfaceCache * | getInstance () |
| Liefert die Singleton-Instanz. | |
Geschützte Methoden | |
| SurfaceCache () | |
| Konstruktor. | |
Private Attribute | |
| int | m_usedCounter |
| long | m_sid |
| Surface * | m_surfaces [MAX_SURFACES] |
| BYTE | m_rgbIntensity [256][256] |
Statische private Attribute | |
| static SurfaceCache * | _instance = 0 |
| SurfaceCache::SurfaceCache | ( | void | ) | [protected] |
Konstruktor.
| SurfaceCache::~SurfaceCache | ( | void | ) |
Destruktor.
| SurfaceCache * SurfaceCache::getInstance | ( | ) | [static] |
Liefert die Singleton-Instanz.
| void SurfaceCache::refresh | ( | ) |
refresh
| long SurfaceCache::addSurface | ( | Texture & | texture | ) |
addSurface
| texture | Textur |
addSurface
| texture | Textur | |
| lightMap | ||
| intensity |
| long SurfaceCache::updateSurface | ( | long | sid, | |
| Texture & | texture | |||
| ) |
updateSurface
| sid | ||
| texture | Textur |
| long SurfaceCache::updateSurface | ( | long | sid, | |
| Texture & | texture, | |||
| LightMap * | lightMap, | |||
| BYTE | intensity | |||
| ) |
updateSurface
| sid | ||
| texture | Textur | |
| lightMap | ||
| intensity |
| Surface * SurfaceCache::getSurface | ( | long | sid | ) |
| int SurfaceCache::getCount | ( | void | ) |
getCount
SurfaceCache * SurfaceCache::_instance = 0 [static, private] |
int SurfaceCache::m_usedCounter [private] |
long SurfaceCache::m_sid [private] |
Surface* SurfaceCache::m_surfaces[MAX_SURFACES] [private] |
BYTE SurfaceCache::m_rgbIntensity[256][256] [private] |
1.5.5