38 lines
1.9 KiB
Markdown
38 lines
1.9 KiB
Markdown
# OpenGLDevice
|
|
|
|
**命名空间**: `XCEngine::RHI`
|
|
|
|
**描述**: OpenGL 设备的实现,继承自 `RHIDevice`。
|
|
|
|
## 公共方法
|
|
|
|
| 方法 | 描述 |
|
|
|------|------|
|
|
| [`Initialize`](../../../threading/task-system/initialize.md) | 初始化设备 |
|
|
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭设备 |
|
|
| [`CreateRenderWindow`](create-render-window.md) | 创建渲染窗口 |
|
|
| [`InitializeWithExistingWindow`](initialize-with-existing-window.md) | 使用现有窗口初始化 |
|
|
| [`GetWindow`](get-window.md) | 获取窗口 |
|
|
| [`SwapBuffers`](swap-buffers.md) | 交换缓冲 |
|
|
| [`PollEvents`](poll-events.md) | 处理窗口事件 |
|
|
| [`SetShouldClose`](set-should-close.md) | 设置关闭标志 |
|
|
| [`ShouldClose`](should-close.md) | 检查是否应关闭 |
|
|
| [`CreateBuffer`](../../device/create-buffer.md) | 创建缓冲区 |
|
|
| [`CreateTexture`](../../device/create-texture.md) | 创建纹理 |
|
|
| [`CreateSwapChain`](../../device/create-swap-chain.md) | 创建交换链 |
|
|
| [`CreateCommandList`](../../device/create-command-list.md) | 创建命令列表 |
|
|
| [`CreateCommandQueue`](../../device/create-command-queue.md) | 创建命令队列 |
|
|
| [`CompileShader`](../../device/compile-shader.md) | 编译着色器 |
|
|
| [`CreatePipelineState`](../../device/create-pipeline-state.md) | 创建管线状态 |
|
|
| [`CreateFence`](../../device/create-fence.md) | 创建栅栏 |
|
|
| [`CreateSampler`](../../device/create-sampler.md) | 创建采样器 |
|
|
| [`GetCapabilities`](../../device/get-capabilities.md) | 获取设备能力 |
|
|
| [`GetDeviceInfo`](../../device/get-device-info.md) | 获取设备信息 |
|
|
| [`GetNativeDevice`](../../device/get-native-device.md) | 获取原生设备 |
|
|
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
|
|
|
## 相关文档
|
|
|
|
- [OpenGL 后端总览](../overview.md)
|
|
- [RHIDevice](../../device/device.md) - 抽象设备接口
|