Files
XCSDD/docs/api/rhi/opengl/render-target-view/initialize-cubemap.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

570 B
Raw Blame History

OpenGLRenderTargetView::InitializeCubemap

bool InitializeCubemap(unsigned int cubemap, int face, int mipLevel = 0)

初始化立方体贴图的渲染目标视图。

参数:

  • cubemap - 立方体贴图对象 ID
  • face - 立方体贴面索引0-5
  • mipLevel - mipmap 级别(默认为 0

返回: bool - 成功返回 true失败返回 false

示例:

OpenGLRenderTargetView rtv;
rtv.InitializeCubemap(cubemapTexture, 0, 0);

相关文档