- added leak_dumper header all over the place (not yet functional in linux)

- Bugfix for particle cleanup
This commit is contained in:
Mark Vejvoda
2010-09-07 05:25:40 +00:00
parent 5fdbce7651
commit ab44c83168
159 changed files with 3109 additions and 55 deletions

View File

@@ -0,0 +1,29 @@
//This file is part of Glest Shared Library (www.glest.org)
//Copyright (C) 2005 Matthias Braun <matze@braunis.de>
//You can redistribute this code and/or modify it under
//the terms of the GNU General Public License as published by the Free Software
//Foundation; either version 2 of the License, or (at your option) any later
//version.
#ifndef _SHARED_SOUND_SOUNDFACTORYSDL_H_
#define _SHARED_SOUND_SOUNDFACTORYSDL_H_
#include "sound_factory.h"
#include "sound_player_openal.h"
#include "leak_dumper.h"
namespace Shared{ namespace Sound{ namespace OpenAL{
// ===============================
// class SoundFactoryOpenAL
// ===============================
class SoundFactoryOpenAL : public SoundFactory{
public:
virtual SoundPlayer* newSoundPlayer() {return new SoundPlayerOpenAL();}
};
}}}//end namespace
#endif

View File

@@ -11,12 +11,11 @@
#include "sound_player.h"
#include "platform_util.h"
#include "platform_common.h"
#include <SDL.h>
#include <AL/alc.h>
#include <AL/al.h>
#include <vector>
#include "leak_dumper.h"
using std::vector;
using namespace Shared::PlatformCommon;