ViewportKey Struct
A passkey used to establish a parent-child relationship between a RenderTarget and a Viewport. More...
Declaration
struct helios::rendering::ViewportKey { ... }
Friends Index
| class | helios::rendering::RenderTarget |
Private Constructors Index
| ViewportKey ()=default | |
Description
A passkey used to establish a parent-child relationship between a RenderTarget and a Viewport.
This struct uses the passkey idiom to restrict the calling of `Viewport::setRenderTarget` to friend classes (specifically `helios::rendering::RenderTarget`), ensuring that the ownership hierarchy is managed correctly.
- See Also
`Viewport::setRenderTarget`
Definition at line 42 of file Viewport.ixx.
Friends
helios::rendering::RenderTarget
|
Definition at line 44 of file Viewport.ixx.
44 friend class helios::rendering::RenderTarget;
Private Constructors
ViewportKey()
| default |
Definition at line 45 of file Viewport.ixx.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.