FDOSTUI
FreeDOS Text User Interface
|
Simple transformation matrix (translate only) More...
Go to the source code of this file.
Classes | |
struct | matrix |
matrix More... | |
Functions | |
void | matrix_cleanup () |
release resources held by the global matrix object More... | |
void | matrix_push () |
pushes the current transformation matrix onto the stack More... | |
void | matrix_pop () |
restore the current transformation matrix More... | |
void | matrix_translate (int const i_translate_x, int const i_translate_y) |
translate the current transformation matrix More... | |
void | matrix_transform (int *const o_pos_x, int *const o_pos_y) |
apply the transformation matrix to the parameters More... | |
Variables | |
struct matrix | _matrix |
current transformation matrix | |
Simple transformation matrix (translate only)
void matrix_cleanup | ( | ) |
release resources held by the global matrix object
This routine should be called when the application exits to release resources created by the matrix routines.
void matrix_pop | ( | ) |
restore the current transformation matrix
void matrix_push | ( | ) |
pushes the current transformation matrix onto the stack
void matrix_transform | ( | int *const | o_pos_x, |
int *const | o_pos_y | ||
) |
apply the transformation matrix to the parameters
[in,out] | o_pos_x | x position to transform |
[in,out] | o_pos_y | y position to transform |
void matrix_translate | ( | int const | i_translate_x, |
int const | i_translate_y | ||
) |
translate the current transformation matrix
[in] | i_translate_x | amount to translate in the X direction |
[in] | i_translate_y | amount to translate in the Y direction |
This operation is additive.