LiteFX::Rendering::IFrameBuffer::mapRenderTarget¶
mapRenderTarget overloads
Synopses¶
Declared in <litefx/rendering_api.hpp>
Maps a render target to a frame buffer image using the render targets name to look up the image.
[[dllimport, dllexport]] void mapRenderTarget(RenderTarget const& renderTarget);
Maps a render target to a frame buffer image.
[[dllimport, dllexport]] virtual void mapRenderTarget(
RenderTarget const& renderTarget,
StringView imageName) = 0;
Maps a render target to a frame buffer image.
[[dllimport, dllexport]] virtual void mapRenderTarget(
RenderTarget const& renderTarget,
UInt32 index) = 0;
Exceptions¶
| Name | Thrown on |
|---|---|
InvalidArgumentException | Thrown, if the frame buffer does not contain an image with the same name as the render target. |
ArgumentOutOfRangeException | Thrown, if index does not address an image in the frame buffer. |
Parameters¶
| Name | Description |
|---|---|
| renderTarget | The render target to map the image to. |
| imageName | The name of the image the render target maps to. |
| index | The index of the image to map to the render target. |
See Also¶
unmapRenderTarget