RenderTarget.ixx File
Defines the RenderTarget class, which encapsulates a destination for rendering operations. More...
Included Headers
#include <memory>
#include <span>
#include <stdexcept>
#include <vector>
#include <helios.rendering.Viewport>
Namespaces Index
| namespace | helios |
| namespace | rendering |
|
Graphics rendering infrastructure. More... | |
Classes Index
| class | RenderTarget |
|
Represents a destination for rendering operations, such as a window's framebuffer. More... | |
Description
Defines the RenderTarget class, which encapsulates a destination for rendering operations.
File Listing
The file content with the documentation metadata removed is:
3 * @brief Defines the RenderTarget class, which encapsulates a destination for rendering operations.
17export namespace helios::rendering {
29 * @todo This implementation currently represents only the **default framebuffer**. Future extensions
33 class RenderTarget {
48 helios::rendering::ViewportKey viewportKey_{};
61 RenderTarget() = default;
75 explicit RenderTarget(
77 unsigned int width = 0,
78 unsigned int height = 0)
79 : width_(width),
80 height_(height) {
85 addViewport(std::move(viewport));
101 std::shared_ptr<helios::rendering::Viewport> addViewport(
126 [[nodiscard]] std::span<const std::shared_ptr<helios::rendering::Viewport>> viewports() noexcept {
131 * @brief Resizes this RenderTarget to the specified dimensions and propagates the change to every viewport.
141 width_ = width;
142 height_ = height;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.