Refactored existing systems to register their own components and resource types.

This commit is contained in:
2014-04-13 16:41:35 +02:00
parent e4e5068727
commit 062242ab8e
14 changed files with 183 additions and 131 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef Sound_h__
#define Sound_h__
#include <AL/al.h>
#include <AL/alc.h>
#include "ResourceManager.h"
class Sound : public Resource
{
public:
Sound(std::string path);
ALuint LoadFile(std::string path);
operator ALuint() const { return m_Buffer; }
private:
ALuint m_Buffer;
};
#endif // Sound_h__