Frame capture + camera + visible-entity inspection (graphics). 更多...
#include <RenderCapture.h>
Public 成员函数 | |
| virtual | ~IRenderCapture ()=default |
| I render capture. | |
| virtual RenderStatusInfo | status () const =0 |
| Status. | |
| virtual void | setReadbackEnabled (bool enabled)=0 |
| Enable/disable full-frame readback for subsequent presents. | |
| virtual Result< CaptureImageInfo > | savePng (const std::string &path)=0 |
| Capture the last presented frame and write a PNG. | |
| virtual std::string | capturePngDataUrl ()=0 |
| Capture the last presented frame as a base64 PNG data URL. | |
| virtual bool | ensureCamera ()=0 |
| Find the active Camera3D (create one lazily); true when usable. | |
| virtual bool | setCameraPose (float ex, float ey, float ez, float tx, float ty, float tz, float fovYDeg)=0 |
| Set camera eye/target/fov (fov <= 0 keeps current). | |
| virtual bool | setCameraPoseYawPitch (float ex, float ey, float ez, float yawDeg, float pitchDeg, float fovYDeg)=0 |
| Set camera eye + yaw/pitch (degrees) + fov. | |
| virtual std::string | cameraPoseJson ()=0 |
| Current camera pose as JSON (eye/target/fov/viewport). | |
| virtual Result< Renderable3DInfo > | inspectRenderable3D (std::uint32_t entityId, std::uint32_t generation)=0 |
| Inspect one live Renderable3D using its complete ECS identity. | |
| virtual std::string | visibleEntitiesJson (float fovYDeg, bool *ok)=0 |
| Visible-entity 3D snapshot JSON for the current camera. | |
| virtual std::string | visibleEntitiesJsonAt (float ex, float ey, float ez, float tx, float ty, float tz, float fovYDeg, bool *ok)=0 |
| Visible-entity 3D snapshot JSON at an explicit camera pose. | |
| virtual std::string | entityIdMaskJson (int *outWidth, int *outHeight, bool *ok)=0 |
| Per-pixel entity-ID mask JSON (id -> node map). | |
| virtual Result< void > | entityIdMaskPng (const std::string &path)=0 |
| Render the entity-ID mask and write it as a PNG. | |
| virtual Result< void > | gbufferPng (const std::string &name, const std::string &path)=0 |
| Save a G-buffer attachment ("depth"|"normal") as PNG. | |
静态 Public 属性 | |
| static constexpr const char * | capabilityName = "IRenderCapture" |
详细描述
Frame capture + camera + visible-entity inspection (graphics).
在文件 RenderCapture.h 第 41 行定义.
构造及析构函数说明
◆ ~IRenderCapture()
|
virtualdefault |
I render capture.
成员函数说明
◆ cameraPoseJson()
|
pure virtual |
Current camera pose as JSON (eye/target/fov/viewport).
◆ capturePngDataUrl()
|
pure virtual |
Capture the last presented frame as a base64 PNG data URL.
◆ ensureCamera()
|
pure virtual |
Find the active Camera3D (create one lazily); true when usable.
◆ entityIdMaskJson()
|
pure virtual |
Per-pixel entity-ID mask JSON (id -> node map).
◆ entityIdMaskPng()
|
pure virtual |
Render the entity-ID mask and write it as a PNG.
- 参数
-
path Destination filesystem path.
◆ gbufferPng()
|
pure virtual |
Save a G-buffer attachment ("depth"|"normal") as PNG.
- 参数
-
name Attachment name. path Destination filesystem path.
◆ inspectRenderable3D()
|
pure virtual |
Inspect one live Renderable3D using its complete ECS identity.
- 返回
- Owning value snapshot, or a structured stale-handle failure. @thread Engine-main-thread only. @reentrancy Does not invoke scripts or callbacks.
◆ savePng()
|
pure virtual |
Capture the last presented frame and write a PNG.
- 参数
-
path Destination filesystem path.
- 返回
- Pixel size on success; Failed/Unsupported with diagnostics otherwise.
◆ setCameraPose()
|
pure virtual |
Set camera eye/target/fov (fov <= 0 keeps current).
◆ setCameraPoseYawPitch()
|
pure virtual |
Set camera eye + yaw/pitch (degrees) + fov.
◆ setReadbackEnabled()
|
pure virtual |
Enable/disable full-frame readback for subsequent presents.
◆ status()
|
pure virtual |
◆ visibleEntitiesJson()
|
pure virtual |
Visible-entity 3D snapshot JSON for the current camera.
◆ visibleEntitiesJsonAt()
|
pure virtual |
Visible-entity 3D snapshot JSON at an explicit camera pose.
类成员变量说明
◆ capabilityName
|
staticconstexpr |
在文件 RenderCapture.h 第 43 行定义.
该类的文档由以下文件生成:
- src/engine/common/RenderCapture.h