![]() |
vkmEngine 1.0.15
A C++ game engine · vkmengine.com
|
Root of a screen-space UI layer. More...
#include <ui_canvas.h>
Public Types | |
| enum class | ScaleMode : uint8_t { Fixed , ScaleWithHeight , Count } |
| How the canvas maps authored pixels to on-screen pixels. More... | |
Static Public Member Functions | |
| static float | scaleIn (const UICanvas &canvas, float viewHeight) |
Screen pixels a pixel of canvas spans, drawn into a view viewHeight pixels tall. | |
Root of a screen-space UI layer.
Descendant UIElements lay out against a reference height, scaled uniformly to the live viewport. Several canvases draw in ascending sortOrder.
|
strong |
|
inlinestatic |
Screen pixels a pixel of canvas spans, drawn into a view viewHeight pixels tall.
| canvas | The canvas. |
| viewHeight | The view's height, in screen pixels. |