shz_xmtrx_translate
SHZ_INLINE void shz_xmtrx_translate(float x, float y, float z) SHZ_NOEXCEPT;Multiplies a 3D translation matrix into XMTRX.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float | X component of the translation vector. |
y | float | Y component of the translation vector. |
z | float | Z component of the translation vector. |
Returns
Section titled “Returns”Nothing (void).
Details
Section titled “Details”Constructs a 4x4 3D translation matrix, whose translation column has the given components, RIGHT multiplying it into XMTRX, overwriting its previous contents.
- This operation is equivalent to glTranslatef().
Availability
Section titled “Availability”- C++ equivalent:
shz::xmtrx::translate - Type-generic form: none
- Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_xmtrx.h:656 - Module: XMTRX, section "GL Transformations"