Refactored existing systems to register their own components and resource types.
This commit is contained in:
+22
@@ -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__
|
||||
Reference in New Issue
Block a user