FramebufferGraphicsOutput class. More...
#include <kanzi/platform/graphics/framebuffer_graphics_output.hpp>
Public Member Functions | |
| FramebufferGraphicsOutput () noexcept | |
| Constructor. | |
| template<typename FramebufferT , typename = enable_if_t<is_base_of_v<FramebufferBase, FramebufferT>>> | |
| KZ_NO_DISCARD FramebufferT * | getFramebuffer () const noexcept |
| Returns the framebuffer for the graphics output. | |
| template<typename FramebufferT , typename > | |
| FramebufferT * | getFramebuffer () const noexcept |
| virtual KZ_NO_DISCARD uintptr_t | getNativeFramebufferHandle (platform::APIBackend backend) const noexcept=0 |
| Gets native framebuffer handle. | |
| virtual KZ_NO_DISCARD Matrix4x4 | getTargetTransformation () const noexcept=0 |
| Returns the target transformation. | |
| void | invalidate () noexcept |
| Invalidates underlying framebuffer. | |
| void | setFramebuffer (unique_ptr< FramebufferBase > framebuffer) noexcept |
| Sets framebuffer for the graphics output. | |
| virtual | ~FramebufferGraphicsOutput ()=default |
| Destructor. | |
FramebufferGraphicsOutput class.
Mixin interface for graphics outputs that expose a kanzi::Framebuffer. This interface participates in the graphics output capability query. See Application::getGraphicsOutput<>().
|
explicitnoexcept |
Constructor.
|
virtualdefault |
Destructor.
|
noexcept |
Sets framebuffer for the graphics output.
| framebuffer | Framebuffer to set. May not be nullptr. |
|
noexcept |
Returns the framebuffer for the graphics output.
| FramebufferT | Framebuffer type to return. |
| nullptr | The framebuffer is either not set or is not convertible to FramebufferT. |
|
noexcept |
Invalidates underlying framebuffer.
|
pure virtualnoexcept |
Returns the target transformation.
Use the target transformation to transform content coordinates to target coordinates.
Implemented in kanzi::emscripten::DefaultEmscriptenGraphicsOutput, kanzi::ios::DefaultIosGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::macos::DefaultMacosGraphicsOutput, kanzi::ohos::DefaultOhosEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::WaylandIVIEGLGraphicsOutput, kanzi::win32::DefaultWin32WGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
pure virtualnoexcept |
Gets native framebuffer handle.
| backend | APIBackend which determines the handle type. |
| 0 | Selected APIBackend is not supported. |
Implemented in kanzi::emscripten::DefaultEmscriptenGraphicsOutput, kanzi::ios::DefaultIosGraphicsOutput, kanzi::LegacyGraphicsOutput, kanzi::macos::DefaultMacosGraphicsOutput, kanzi::ohos::DefaultOhosEGLGraphicsOutput, kanzi::qnx::DefaultQnxEGLGraphicsOutput, kanzi::wayland::DefaultWaylandEGLGraphicsOutput, kanzi::wayland::WaylandIVIEGLGraphicsOutput, and kanzi::x11::DefaultX11EGLGraphicsOutput.
|
noexcept |