Correction shader + autres choses
This commit is contained in:
@@ -2,21 +2,31 @@
|
||||
#define AUDIO_H__
|
||||
|
||||
#include <irrKlang.h>
|
||||
#include <ik_ISoundSource.h>
|
||||
#include "define.h"
|
||||
#include "vector3.h"
|
||||
|
||||
class Audio {
|
||||
private:
|
||||
irrklang::ISoundEngine* m_WavEngine;
|
||||
bool m_state = false;
|
||||
irrklang::ISoundEngine* m_engine;
|
||||
irrklang::ISound* m_music;
|
||||
|
||||
irrklang::vec3df convertVector(Vector3f& vec) const;
|
||||
|
||||
public:
|
||||
Audio();
|
||||
Audio(const char* music);
|
||||
~Audio();
|
||||
|
||||
bool GetState() const;
|
||||
void Update3DAudio(Vector3f& pos, Vector3f& dir, Vector3f& speed);
|
||||
|
||||
void SetState(bool state);
|
||||
void Create3DAudioObj(irrklang::ISound* sound, const char* name, Vector3f& pos, Vector3f& speed, float volume);
|
||||
|
||||
void Render3DAudioObj(irrklang::ISound* sound, Vector3f& pos, Vector3f& speed, float volume);
|
||||
|
||||
void ToggleMusicState();
|
||||
|
||||
void PauseEngine();
|
||||
};
|
||||
|
||||
#endif // AUDIO_H__
|
Reference in New Issue
Block a user