CMGDK r49-rc2
|
收听者管理类 更多...
#include <Listener.H>
公有成员 | |
float | GetGain () |
读取音量增益幅度 | |
const Vector3f & | GetPosition () |
读取音源坐标位置 | |
const Vector3f & | GetVelocity () |
读取速率 | |
const Vector3f * | GetOrientation () |
读取导向 | |
void | SetGain (float) |
设置音量增益幅度 | |
void | SetPosition (const Vector3f &) |
设置音源坐标位置 | |
void | SetVelocity (const Vector3f &) |
设置速率 | |
void | SetOrientation (const Vector3f *) |
设置导向 | |
AudioListener () | |
~AudioListener () | |
保护属性 | |
float | gain |
Vector3f | position |
Vector3f | velocity |
Vector3f * | orientation |
收听者管理类
这个类用于管理收听者的一些状态,可以通过它设定统一的音量,收听者的位置、方向等
hgl::AudioListener::AudioListener | ( | ) |
hgl::AudioListener::~AudioListener | ( | ) |
float hgl::AudioListener::GetGain | ( | ) | [inline] |
读取音量增益幅度
const Vector3f* hgl::AudioListener::GetOrientation | ( | ) | [inline] |
读取导向
const Vector3f& hgl::AudioListener::GetPosition | ( | ) | [inline] |
读取音源坐标位置
const Vector3f& hgl::AudioListener::GetVelocity | ( | ) | [inline] |
读取速率
void hgl::AudioListener::SetGain | ( | float | _gain | ) |
设置音量增益幅度
void hgl::AudioListener::SetOrientation | ( | const Vector3f * | ori | ) |
设置导向
void hgl::AudioListener::SetPosition | ( | const Vector3f & | pos | ) |
设置音源坐标位置
void hgl::AudioListener::SetVelocity | ( | const Vector3f & | vel | ) |
设置速率
float hgl::AudioListener::gain [protected] |
Vector3f* hgl::AudioListener::orientation [protected] |
Vector3f hgl::AudioListener::position [protected] |
Vector3f hgl::AudioListener::velocity [protected] |