Add createContext methods that don't throw on error
[alure.git] / src / effect.h
blob6efcefda3e09bf6eb8d5d1208a780ce5ff43b751
1 #ifndef EFFECT_H
2 #define EFFECT_H
4 #include "main.h"
6 namespace alure {
8 class ContextImpl;
10 class EffectImpl {
11 ContextImpl *const mContext;
12 ALuint mId;
13 ALenum mType;
15 public:
16 EffectImpl(ContextImpl *context, ALuint id) : mContext(context), mId(id), mType(AL_NONE)
17 { }
19 void setReverbProperties(const EFXEAXREVERBPROPERTIES &props);
21 void destroy();
23 ContextImpl *getContext() const { return mContext; }
24 ALuint getId() const { return mId; }
27 } // namespace alure
29 #endif /* EFFECT_H */