Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (12 sloc) 448 Bytes
#include "SdlLayerFactory.h"
SdlLayerInstanceDelegator *SdlLayerFactory::instance = 0;
SdlLayerFactory::SdlLayerFactory(){}
SdlLayerFactory::~SdlLayerFactory(){}
SdlLayerInstanceDelegator *SdlLayerFactory::getInstance() {
return instance;
}
SdlLayerInstanceDelegator *SdlLayerFactory::replaceInstance(SdlLayerInstanceDelegator *replacement) {
SdlLayerInstanceDelegator *original = instance;
instance = replacement;
return original;
}