3#include "spark/render/Export.h"
5#include "spark/math/Rectangle.h"
29 virtual
void setRectangle(const math::Rectangle<
float>& rectangle) noexcept = 0;
35 [[nodiscard]] virtual
float minDepth() const noexcept = 0;
41 virtual
void setMinDepth(
float min_depth) noexcept = 0;
47 [[nodiscard]] virtual
float maxDepth() const noexcept = 0;
53 virtual
void setMaxDepth(
float max_depth) noexcept = 0;
83 [[nodiscard]]
float minDepth()
const noexcept override;
86 void setMinDepth(
float min_depth)
noexcept override;
89 [[nodiscard]]
float maxDepth()
const noexcept override;
92 void setMaxDepth(
float max_depth)
noexcept override;
96 std::unique_ptr<Impl> m_impl;
Represents a rectangle in 2D space.
Definition Rectangle.h:15
Interface representing a viewport.
Definition Viewport.h:15
virtual math::Rectangle< float > rectangle() const noexcept=0
Gets the rectangle defining the dimensions of the viewport.
Implementation of IViewport.
Definition Viewport.h:60
Definition Viewport.cpp:6