shz_xmtrx_init_screen
SHZ_INLINE void shz_xmtrx_init_screen(float width, float height) SHZ_NOEXCEPT;Initializes XMTRX to the viewport matrix with the given dimensions.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
width | float | |
height | float |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”| fr[n + 0] | fr[n + 4] | fr[n + 8] | fr[n + 12] |
|---|---|---|---|
| w*0.5f | 0.0f | 0.0f | w*0.5f |
| 0.0f | -h*0.5f | 0.0f | h*0.5f |
| 0.0f | 0.0f | 1.0f | 0.0f |
| 0.0f | 0.0f | 0.0f | 1.0f |
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::init_screen - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:364 - Module: XMTRX, section "Initialization"