20 lines
358 B
Markdown
20 lines
358 B
Markdown
# OpenGLDepthStencilView::GetTexture
|
|
|
|
```cpp
|
|
unsigned int GetTexture() const
|
|
```
|
|
|
|
获取创建此深度模板视图时使用的原始纹理对象 ID。
|
|
|
|
**返回:** `unsigned int` - 纹理 OpenGL 对象 ID
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
unsigned int tex = dsv.GetTexture();
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [OpenGLDepthStencilView](depth-stencil-view.md) - 返回类总览
|