Skip to content

LiteFX::Rendering::IFrameBuffer::image

Resolves a render target and returns the image mapped to it.

Synopsis

Declared in <litefx/rendering_api.hpp>

[[dllimport, dllexport]] virtual IImage const& image(RenderTarget const& renderTarget) const = 0;

Exceptions

NameThrown on
InvalidArgumentExceptionThrown, if renderTarget is not mapped to an image in the frame buffer.

Return Value

The image mapped to the render target.

Parameters

NameDescription
renderTargetThe render target to resolve.