14VTK_ABI_NAMESPACE_BEGIN
23 VisRTX::Context* rtx = VisRTX_GetContext();
26 this->frameBuffer = rtx->CreateFrameBuffer(VisRTX::FrameBufferFormat::RGBA8, VisRTX::Vec2ui(size.x, size.y));
28 this->frameBuffer = rtx->CreateFrameBuffer(VisRTX::FrameBufferFormat::RGBA32F, VisRTX::Vec2ui(size.x, size.y));
32 this->format = format;
33 this->channels = frameBufferChannels;
38 this->frameBuffer->Release();
47 this->frameBuffer->Clear();
53 return this->frameBuffer->MapColorBuffer();
55 return this->frameBuffer->MapDepthBuffer();
63 this->frameBuffer->Unmap(mapped);
68 this->frameBuffer->SetDepthNormalization(clipMin, clipMax);
75 return this->frameBuffer->GetColorTextureGL();
77 catch(
const VisRTX::Exception& e)
79 vtkLogF(ERROR,
"VISRTX Error: Could not get color texture.");
88 return this->frameBuffer->GetDepthTextureGL();
90 catch(
const VisRTX::Exception& e)
92 vtkLogF(ERROR,
"VISRTX Error: Could not get depth texture.");
98 VisRTX::FrameBuffer* frameBuffer =
nullptr;
void SetDepthNormalizationGL(float clipMin, float clipMax)
FrameBuffer(const rtw::vec2i &size, const RTWFrameBufferFormat format, const uint32_t frameBufferChannels)
void Unmap(const void *mapped)
const void * Map(const RTWFrameBufferChannel channel)
#define vtkLogF(verbosity_name,...)
Add to log given the verbosity level.