refactor(docs): Fix broken links across multiple modules
Fixed broken references: - texture-import-settings: Fix 16 files referencing wrong overview filename - math/rectint: Fix 9 method links (rectint-* → get*, contains, intersects) - rhi/opengl/device: Fix 8 cross-references (opengl-* → */**) - resources/mesh: Fix meshsection and vertexattribute links - rhi/d3d12/sampler: Fix RHISampler reference path - math/vector3: Fix projectonplane → project-on-plane - rhi/opengl/command-list: Remove broken ClearFlag enum ref - rhi/opengl/device: Create 2 new method docs (MakeContextCurrent, GetNativeContext) - rhi/device: Fix device-info types reference All 0 broken references remaining.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# GetMasterVolume
|
||||
|
||||
**所属类**: `AudioListenerComponent`
|
||||
|
||||
**头文件**: `XCEngine/Core/Components/AudioListenerComponent.h`
|
||||
|
||||
**描述**: 获取音频监听器的主音量。
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
float GetMasterVolume() const;
|
||||
```
|
||||
|
||||
## 返回值
|
||||
|
||||
| 类型 | 描述 |
|
||||
|------|------|
|
||||
| `float` | 当前主音量,范围 0.0 到 1.0 |
|
||||
|
||||
## 使用示例
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Components/AudioListenerComponent.h>
|
||||
|
||||
using namespace XCEngine::Components;
|
||||
|
||||
void PrintListenerVolume(AudioListenerComponent* listener) {
|
||||
float volume = listener->GetMasterVolume();
|
||||
printf("Master volume: %.2f\n", volume);
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioListenerComponent](audio-listener-component.md) - 音频监听器组件
|
||||
- [SetMasterVolume](set-master-volume.md) - 设置主音量
|
||||
@@ -0,0 +1,36 @@
|
||||
# SetMasterVolume
|
||||
|
||||
**所属类**: `AudioListenerComponent`
|
||||
|
||||
**头文件**: `XCEngine/Core/Components/AudioListenerComponent.h`
|
||||
|
||||
**描述**: 设置音频监听器的主音量。
|
||||
|
||||
## 函数签名
|
||||
|
||||
```cpp
|
||||
void SetMasterVolume(float volume);
|
||||
```
|
||||
|
||||
## 参数
|
||||
|
||||
| 参数 | 类型 | 描述 |
|
||||
|------|------|------|
|
||||
| `volume` | `float` | 主音量,范围 0.0 到 1.0 |
|
||||
|
||||
## 使用示例
|
||||
|
||||
```cpp
|
||||
#include <XCEngine/Components/AudioListenerComponent.h>
|
||||
|
||||
using namespace XCEngine::Components;
|
||||
|
||||
void SetListenerVolume(AudioListenerComponent* listener) {
|
||||
listener->SetMasterVolume(0.8f); // 80% 音量
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AudioListenerComponent](audio-listener-component.md) - 音频监听器组件
|
||||
- [GetMasterVolume](get-master-volume.md) - 获取主音量
|
||||
Reference in New Issue
Block a user