载入中...
搜索中...
未找到
eve::IRenderCapture类 参考abstract

Frame capture + camera + visible-entity inspection (graphics). 更多...

#include <RenderCapture.h>

Public 成员函数

virtual ~IRenderCapture ()=default
 
virtual RenderStatusInfo status () const =0
 
virtual void setReadbackEnabled (bool enabled)=0
 Enable/disable full-frame readback for subsequent presents.
 
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 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 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 bool entityIdMaskPng (const std::string &path, std::string *err)=0
 Render the entity-ID mask and write it as a PNG.
 
virtual bool gbufferPng (const std::string &name, const std::string &path, std::string *err)=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.h22 行定义.

构造及析构函数说明

◆ ~IRenderCapture()

virtual eve::IRenderCapture::~IRenderCapture ( )
virtualdefault

成员函数说明

◆ cameraPoseJson()

virtual std::string eve::IRenderCapture::cameraPoseJson ( )
pure virtual

Current camera pose as JSON (eye/target/fov/viewport).

◆ capturePngDataUrl()

virtual std::string eve::IRenderCapture::capturePngDataUrl ( )
pure virtual

Capture the last presented frame as a base64 PNG data URL.

◆ ensureCamera()

virtual bool eve::IRenderCapture::ensureCamera ( )
pure virtual

Find the active Camera3D (create one lazily); true when usable.

◆ entityIdMaskJson()

virtual std::string eve::IRenderCapture::entityIdMaskJson ( int *  outWidth,
int *  outHeight,
bool *  ok 
)
pure virtual

Per-pixel entity-ID mask JSON (id -> node map).

◆ entityIdMaskPng()

virtual bool eve::IRenderCapture::entityIdMaskPng ( const std::string &  path,
std::string *  err 
)
pure virtual

Render the entity-ID mask and write it as a PNG.

◆ gbufferPng()

virtual bool eve::IRenderCapture::gbufferPng ( const std::string &  name,
const std::string &  path,
std::string *  err 
)
pure virtual

Save a G-buffer attachment ("depth"|"normal") as PNG.

◆ savePng()

virtual bool eve::IRenderCapture::savePng ( const std::string &  path,
int *  outWidth,
int *  outHeight,
std::string *  err 
)
pure virtual

Capture the last presented frame and write a PNG.

◆ setCameraPose()

virtual bool eve::IRenderCapture::setCameraPose ( float  ex,
float  ey,
float  ez,
float  tx,
float  ty,
float  tz,
float  fovYDeg 
)
pure virtual

Set camera eye/target/fov (fov <= 0 keeps current).

◆ setCameraPoseYawPitch()

virtual bool eve::IRenderCapture::setCameraPoseYawPitch ( float  ex,
float  ey,
float  ez,
float  yawDeg,
float  pitchDeg,
float  fovYDeg 
)
pure virtual

Set camera eye + yaw/pitch (degrees) + fov.

◆ setReadbackEnabled()

virtual void eve::IRenderCapture::setReadbackEnabled ( bool  enabled)
pure virtual

Enable/disable full-frame readback for subsequent presents.

◆ status()

virtual RenderStatusInfo eve::IRenderCapture::status ( ) const
pure virtual

◆ visibleEntitiesJson()

virtual std::string eve::IRenderCapture::visibleEntitiesJson ( float  fovYDeg,
bool *  ok 
)
pure virtual

Visible-entity 3D snapshot JSON for the current camera.

◆ visibleEntitiesJsonAt()

virtual std::string eve::IRenderCapture::visibleEntitiesJsonAt ( float  ex,
float  ey,
float  ez,
float  tx,
float  ty,
float  tz,
float  fovYDeg,
bool *  ok 
)
pure virtual

Visible-entity 3D snapshot JSON at an explicit camera pose.

类成员变量说明

◆ capabilityName

constexpr const char* eve::IRenderCapture::capabilityName = "IRenderCapture"
staticconstexpr

在文件 RenderCapture.h24 行定义.


该类的文档由以下文件生成: