Skip to content

raisin::Camera::RenderTargetDiagnostics ​

struct · #include <rayrai/Camera.hpp>

Internal: diagnostics snapshot of one camera-owned render target (returned by renderTargetDiagnostics()). GL ids are 0 when unallocated.

Public attributes ​

name ​

cpp
std::string name

Target name, e.g. "scene", "postprocess", "picking".

framebuffer ​

cpp
unsigned int framebuffer

GL framebuffer id.

colorTexture ​

cpp
unsigned int colorTexture

GL color texture id.

depthTexture ​

cpp
unsigned int depthTexture

GL depth texture id.

colorRenderbuffer ​

cpp
unsigned int colorRenderbuffer

GL color renderbuffer id (MSAA target).

depthRenderbuffer ​

cpp
unsigned int depthRenderbuffer

GL depth renderbuffer id.

width ​

cpp
int width

Allocated width in pixels.

height ​

cpp
int height

Allocated height in pixels.

samples ​

cpp
int samples

MSAA sample count.

colorFormat ​

cpp
std::string colorFormat

Color format name; empty if none.

depthFormat ​

cpp
std::string depthFormat

Depth format name; empty if none.

estimatedBytes ​

cpp
size_t estimatedBytes

Estimated GPU memory; 0 when not ready.

ready ​

cpp
bool ready

True when all required attachments exist.

framebufferStatus ​

cpp
unsigned int framebufferStatus

glCheckFramebufferStatus() result (0 if no FBO).

framebufferStatusName ​

cpp
std::string framebufferStatusName

Readable form of framebufferStatus.

framebufferComplete ​

cpp
bool framebufferComplete

True when the status is GL_FRAMEBUFFER_COMPLETE.

RaiSim — physics for robotics and AI.