Skip to content

shz_xmtrx_init_screen

Markdown
SHZ_INLINE void shz_xmtrx_init_screen(float width, float height) SHZ_NOEXCEPT;

Initializes XMTRX to the viewport matrix with the given dimensions.

NameTypeDescription
widthfloat
heightfloat

Nothing (void).

fr[n + 0]fr[n + 4]fr[n + 8]fr[n + 12]
w*0.5f0.0f0.0fw*0.5f
0.0f-h*0.5f0.0fh*0.5f
0.0f0.0f1.0f0.0f
0.0f0.0f0.0f1.0f