FDOSTUI
FreeDOS Text User Interface
matrix.h
Go to the documentation of this file.
1 /*
2  MATRIX.H
3 
4  License CC0 PUBLIC DOMAIN
5 
6  To the extent possible under law, Mark J. Olesen has waived all copyright
7  and related or neighboring rights to FDOSTUI Library. This work is published
8  from: United States.
9 */
10 #ifndef __matrix_h__
11 
12 struct matrix
13 {
16 };
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 extern struct matrix _matrix;
23 
24 extern void
26 
27 extern void
28 matrix_push();
29 
30 extern void
31 matrix_pop();
32 
33 extern void
35  int const i_translate_x,
36  int const i_translate_y);
37 
38 extern void
40  int*const o_pos_x,
41  int*const o_pos_y);
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #define __matrix_h__
48 #endif
void matrix_transform(int *const o_pos_x, int *const o_pos_y)
apply the transformation matrix to the parameters
Definition: matrix.c:93
int m_translate_y
Definition: matrix.h:15
matrix
Definition: matrix.h:12
void matrix_pop()
restore the current transformation matrix
Definition: matrix.c:72
void matrix_translate(int const i_translate_x, int const i_translate_y)
translate the current transformation matrix
Definition: matrix.c:83
void matrix_cleanup()
release resources held by the global matrix object
Definition: matrix.c:24
int m_translate_x
Definition: matrix.h:14
struct matrix _matrix
current transformation matrix
Definition: matrix.c:18
void matrix_push()
pushes the current transformation matrix onto the stack
Definition: matrix.c:34