Skip to content

LiteFX::Rendering::RenderPass::activeFrameBuffer

Returns the current frame buffer from of the render pass.

Synopsis

Declared in <litefx/rendering.hpp>

virtual SharedPtr<frame_buffer_type const> activeFrameBuffer() const noexcept = 0;

Description

The frame buffer can only be obtained, if the render pass has been started by calling begin. If the render pass has ended or not yet started, the method will instead raise an exception.

Return Value

A pointer to the currently active frame buffer or nullptr, if the render pass has not been started.

See Also

begin