- forgot to commit changes
This commit is contained in:
parent
209458adee
commit
1d9f1f9432
|
@ -16,16 +16,8 @@
|
||||||
|
|
||||||
#include "graphics_factory.h"
|
#include "graphics_factory.h"
|
||||||
#include "sound_factory.h"
|
#include "sound_factory.h"
|
||||||
|
|
||||||
#include "graphics_factory_gl.h"
|
#include "graphics_factory_gl.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
|
|
||||||
#include "graphics_factory_gl2.h"
|
|
||||||
//#include "sound_factory_ds8.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "sound_factory_openal.h"
|
#include "sound_factory_openal.h"
|
||||||
#include "sound_factory_none.h"
|
#include "sound_factory_none.h"
|
||||||
#include "leak_dumper.h"
|
#include "leak_dumper.h"
|
||||||
|
@ -36,23 +28,16 @@ using Shared::Graphics::GraphicsFactory;
|
||||||
using Shared::Sound::SoundFactory;
|
using Shared::Sound::SoundFactory;
|
||||||
using Shared::Graphics::Gl::GraphicsFactoryGl;
|
using Shared::Graphics::Gl::GraphicsFactoryGl;
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
|
|
||||||
using Shared::Graphics::Gl::GraphicsFactoryGl2;
|
|
||||||
//using Shared::Sound::Ds8::SoundFactoryDs8;
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using Shared::Sound::OpenAL::SoundFactoryOpenAL;
|
using Shared::Sound::OpenAL::SoundFactoryOpenAL;
|
||||||
using Shared::Sound::SoundFactoryNone;
|
using Shared::Sound::SoundFactoryNone;
|
||||||
|
|
||||||
namespace Shared{ namespace Platform{
|
namespace Shared { namespace Platform {
|
||||||
|
|
||||||
// =====================================================
|
// =====================================================
|
||||||
// class FactoryRepository
|
// class FactoryRepository
|
||||||
// =====================================================
|
// =====================================================
|
||||||
|
|
||||||
class FactoryRepository{
|
class FactoryRepository {
|
||||||
private:
|
private:
|
||||||
FactoryRepository(){};
|
FactoryRepository(){};
|
||||||
FactoryRepository(const FactoryRepository& );
|
FactoryRepository(const FactoryRepository& );
|
||||||
|
@ -61,13 +46,6 @@ private:
|
||||||
private:
|
private:
|
||||||
GraphicsFactoryGl graphicsFactoryGl;
|
GraphicsFactoryGl graphicsFactoryGl;
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
|
|
||||||
GraphicsFactoryGl2 graphicsFactoryGl2;
|
|
||||||
//SoundFactoryDs8 soundFactoryDs8;
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
SoundFactoryOpenAL soundFactoryOpenAL;
|
SoundFactoryOpenAL soundFactoryOpenAL;
|
||||||
SoundFactoryNone soundFactoryNone;
|
SoundFactoryNone soundFactoryNone;
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,6 @@ GraphicsFactory *FactoryRepository::getGraphicsFactory(const string &name){
|
||||||
if(name == "OpenGL"){
|
if(name == "OpenGL"){
|
||||||
return &graphicsFactoryGl;
|
return &graphicsFactoryGl;
|
||||||
}
|
}
|
||||||
else if(name == "OpenGL2"){
|
|
||||||
return &graphicsFactoryGl2;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw megaglest_runtime_error("Unknown graphics factory: [" + name + "]");
|
throw megaglest_runtime_error("Unknown graphics factory: [" + name + "]");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user