@@ -32,31 +32,32 @@ namespace lsp
32
32
{
33
33
typedef struct base_backend_t : public backend_t
34
34
{
35
- mat4_t matProjection;
36
- mat4_t matView;
37
- mat4_t matWorld;
35
+ mat4_t matProjection;
36
+ mat4_t matView;
37
+ mat4_t matWorld;
38
38
39
- color_t colBackground;
39
+ color_t colBackground;
40
40
41
- ssize_t viewLeft;
42
- ssize_t viewTop;
43
- ssize_t viewWidth;
44
- ssize_t viewHeight;
41
+ ssize_t viewLeft;
42
+ ssize_t viewTop;
43
+ ssize_t viewWidth;
44
+ ssize_t viewHeight;
45
45
46
- static void init_matrix_identity (mat4_t *m);
47
- static void matrix_mul (mat4_t *r, const mat4_t *s, const mat4_t *m);
46
+ static void init_matrix_identity (mat4_t *m);
47
+ static void matrix_mul (mat4_t *r, const mat4_t *s, const mat4_t *m);
48
48
49
- explicit base_backend_t ();
49
+ explicit base_backend_t ();
50
+ void construct ();
50
51
51
- static status_t init (backend_t *handle);
52
- static void destroy (backend_t *handle);
52
+ static status_t init (backend_t *handle);
53
+ static void destroy (backend_t *handle);
53
54
54
- static status_t locate (backend_t *handle, ssize_t left, ssize_t top, ssize_t width, ssize_t height);
55
- static status_t set_matrix (backend_t *handle, matrix_type_t type, const mat4_t *m);
56
- static status_t get_matrix (backend_t *handle, matrix_type_t type, mat4_t *m);
57
- static status_t set_bg_color (backend_t *handle, const color_t *color);
58
- static status_t get_bg_color (backend_t *handle, color_t *color);
59
- static status_t get_location (backend_t *handle, ssize_t *left, ssize_t *top, ssize_t *width, ssize_t *height);
55
+ static status_t locate (backend_t *handle, ssize_t left, ssize_t top, ssize_t width, ssize_t height);
56
+ static status_t set_matrix (backend_t *handle, matrix_type_t type, const mat4_t *m);
57
+ static status_t get_matrix (backend_t *handle, matrix_type_t type, mat4_t *m);
58
+ static status_t set_bg_color (backend_t *handle, const color_t *color);
59
+ static status_t get_bg_color (backend_t *handle, color_t *color);
60
+ static status_t get_location (backend_t *handle, ssize_t *left, ssize_t *top, ssize_t *width, ssize_t *height);
60
61
61
62
} base_backend_t ;
62
63
}
0 commit comments