载入中...
搜索中...
未找到
RenderCapture.h
浏览该文件的文档.
Frame capture + camera + visible-entity inspection (graphics).
Definition RenderCapture.h:22
virtual std::string cameraPoseJson()=0
Current camera pose as JSON (eye/target/fov/viewport).
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 ensureCamera()=0
Find the active Camera3D (create one lazily); true when usable.
virtual bool savePng(const std::string &path, int *outWidth, int *outHeight, std::string *err)=0
Capture the last presented frame and write a PNG.
virtual ~IRenderCapture()=default
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 bool entityIdMaskPng(const std::string &path, std::string *err)=0
Render the entity-ID mask and write it as a PNG.
virtual std::string visibleEntitiesJson(float fovYDeg, bool *ok)=0
Visible-entity 3D snapshot JSON for the current camera.
virtual std::string entityIdMaskJson(int *outWidth, int *outHeight, bool *ok)=0
Per-pixel entity-ID mask JSON (id -> node map).
virtual bool gbufferPng(const std::string &name, const std::string &path, std::string *err)=0
Save a G-buffer attachment ("depth"|"normal") as PNG.
virtual std::string capturePngDataUrl()=0
Capture the last presented frame as a base64 PNG data URL.
virtual void setReadbackEnabled(bool enabled)=0
Enable/disable full-frame readback for subsequent presents.
virtual bool setCameraPoseYawPitch(float ex, float ey, float ez, float yawDeg, float pitchDeg, float fovYDeg)=0
Set camera eye + yaw/pitch (degrees) + fov.
virtual RenderStatusInfo status() const =0
Definition Build.cpp:11
Render surface / frame state snapshot (value type).
Definition RenderCapture.h:14