Class representing a default Emscripten graphics output. More...
#include <kanzi/platform/platform/graphics_output/emscripten/default_emscripten_graphics_output.hpp>
Protected Member Functions | |
| void | setTargetTransformation (Matrix4x4 targetTransformation) noexcept |
| Sets the target transformation. | |
| bool | updateCachedValues (unsigned int width, unsigned int height) noexcept |
| Updates all cached values from given layout size. | |
Protected Member Functions inherited from kanzi::GraphicsOutput | |
| void | updateDpi (Vector2 dpi) |
| Updates the target layout area resolution. | |
| void | updateSize (unsigned int width, unsigned int height) |
| Updates the target layout area size. | |
Class representing a default Emscripten graphics output.
|
explicit |
Constructor.
| properties | Specifies properties to request for the graphics output. |
|
noexcept |
Destructor.
|
noexcept |
Prints the active window size to log.
|
overridevirtual |
Amends the given event queue with events received so far.
| queue | Event queue to be amended. Do not clear nor assume to be empty. |
Implements kanzi::EventSource.
|
overridevirtualnoexcept |
Returns a waitable event handle for this event source, if available.
| nullopt | Getting the event handle failed. |
Implements kanzi::WakeupSignalSource.
|
overridevirtualnoexcept |
Returns the target transformation.
Implements kanzi::FramebufferGraphicsOutput.
|
noexcept |
Returns the active window width.
| nullopt | Getting the width failed. |
|
noexcept |
Returns the active window height.
| nullopt | Getting the height failed. |
|
overridevirtualnoexcept |
FramebufferGraphicsOutput::getNativeFramebufferHandle() implementation.
Implements kanzi::FramebufferGraphicsOutput.
|
inlineprotectednoexcept |
Sets the target transformation.
| targetTransformation | The target transformation matrix. |
|
protectednoexcept |
Updates all cached values from given layout size.
| width | Layout area width in pixels. |
| height | Layout area height in pixels. |