Mercurial > MadButterfly
annotate include/mb_graph_engine_skia.h @ 1472:7cb7abb5063b
Refactory drawing functions into classes for state and transition
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 24 Apr 2011 15:13:41 +0800 |
parents | 7b4e80ab671a |
children | 74635b07a83a |
rev | line source |
---|---|
822
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
512
diff
changeset
|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- |
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
512
diff
changeset
|
2 // vim: sw=4:ts=8:sts=4 |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
3 #ifndef __MB_GE_SKIA_H_ |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
4 #define __MB_GE_SKIA_H_ |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
5 |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
6 #include <stdio.h> |
482
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
7 #include "mb_basic_types.h" |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
8 #include "mb_img_ldr.h" |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
9 |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
10 /*! \defgroup mb_ge_skia MadButterfly Graphic Engine with Skia |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
11 * @{ |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
12 */ |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
13 #define MBE_OPERATOR_CLEAR 2 |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
14 #define MBE_OPERATOR_SOURCE 1 |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
15 #define MBE_STATUS_SUCCESS 0 |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
16 |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
17 struct _mbe_text_extents_t { |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
18 co_aix x_bearing; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
19 co_aix y_bearing; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
20 co_aix width; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
21 co_aix height; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
22 co_aix x_advance; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
23 co_aix y_advance; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
24 }; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
25 struct _mbe_scaled_font_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
26 struct _mbe_font_face_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
27 struct _mbe_surface_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
28 struct _mbe_pattern_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
29 struct _mbe_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
30 |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
31 typedef struct _mbe_text_extents_t mbe_text_extents_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
32 typedef struct _mbe_scaled_font_t mbe_scaled_font_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
33 typedef struct _mbe_font_face_t mbe_font_face_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
34 typedef struct _mbe_surface_t mbe_surface_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
35 typedef struct _mbe_pattern_t mbe_pattern_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
36 typedef struct _mbe_t mbe_t; |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
37 |
478
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
38 extern mbe_pattern_t *mbe_pattern_create_for_surface(mbe_surface_t *surface); |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
39 extern mbe_pattern_t *mbe_pattern_create_radial(co_aix cx0, co_aix cy0, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
40 co_aix radius0, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
41 co_aix cx1, co_aix cy1, |
482
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
42 co_aix radius1, |
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
43 grad_stop_t *stops, |
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
44 int stop_cnt); |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
45 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, |
482
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
46 co_aix x1, co_aix y1, |
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
47 grad_stop_t *stops, |
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
48 int stop_cnt); |
478
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
49 extern void mbe_pattern_set_matrix(mbe_pattern_t *ptn, |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
50 const co_aix matrix[6]); |
482
d38aca825822
Import more functions for Skia graphic engine.
Thinker K.F. Li <thinker@branda.to>
parents:
478
diff
changeset
|
51 extern void mbe_pattern_destroy(mbe_pattern_t *ptn); |
478
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
52 |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
53 extern int mbe_image_surface_get_stride(mbe_surface_t *surface); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
54 extern int mbe_image_surface_get_height(mbe_surface_t *surface); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
55 extern int mbe_image_surface_get_width(mbe_surface_t *surface); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
56 extern unsigned char *mbe_image_surface_get_data(mbe_surface_t *surface); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
57 extern mbe_surface_t *mbe_image_surface_create_from_png(const char *filename); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
58 extern mbe_surface_t * |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
59 mbe_image_surface_create_for_data(unsigned char *data, |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
60 mb_img_fmt_t fmt, |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
61 int width, int height, |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
62 int stride); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
63 extern mb_img_fmt_t mbe_image_surface_get_format(mbe_surface_t *surface); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
64 extern mbe_surface_t * |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
65 mbe_image_surface_create(mb_img_fmt_t fmt, int width, int height); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
66 |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
67 extern mbe_scaled_font_t *mbe_scaled_font_reference(mbe_scaled_font_t *scaled); |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
68 extern void mbe_scaled_font_destroy(mbe_scaled_font_t *scaled); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
69 extern mbe_font_face_t *mbe_font_face_reference(mbe_font_face_t *face); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
70 extern mbe_scaled_font_t * |
473
ba64f928542b
Remove mbe_matrix_t type.
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
71 mbe_scaled_font_create(mbe_font_face_t *face, co_aix fnt_mtx[6], |
ba64f928542b
Remove mbe_matrix_t type.
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
72 co_aix ctm[6]); |
478
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
73 extern mbe_scaled_font_t *mbe_get_scaled_font(mbe_t *canvas); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
74 extern void mbe_scaled_font_text_extents(mbe_scaled_font_t *scaled, |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
75 const char *txt, |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
76 mbe_text_extents_t *extents); |
b27a3460c7bd
Re-arrange and group functions.
Thinker K.F. Li <thinker@branda.to>
parents:
473
diff
changeset
|
77 |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
78 extern void mbe_font_face_destroy(mbe_font_face_t *face); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
79 extern void mbe_paint_with_alpha(mbe_t *canvas, co_aix alpha); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
80 extern void mbe_surface_destroy(mbe_surface_t *surface); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
81 extern void mbe_set_source_rgba(mbe_t *canvas, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
82 co_aix r, co_aix g, co_aix b, co_aix a); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
83 extern void mbe_set_scaled_font(mbe_t *canvas, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
84 const mbe_scaled_font_t *scaled); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
85 extern void mbe_set_source_rgb(mbe_t *canvas, co_aix r, co_aix g, co_aix b); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
86 extern void mbe_set_line_width(mbe_t *canvas, co_aix width); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
87 extern mbe_font_face_t *mbe_get_font_face(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
88 extern void mbe_fill_preserve(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
89 extern void mbe_set_source(mbe_t *canvas, mbe_pattern_t *source); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
90 extern void mbe_reset_clip(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
91 extern mbe_surface_t *mbe_get_target(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
92 extern void mbe_close_path(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
93 extern void mbe_text_path(mbe_t *canvas, const char *txt); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
94 extern void mbe_rectangle(mbe_t *canvas, co_aix x, co_aix y, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
95 co_aix width, co_aix height); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
96 extern int mbe_in_stroke(mbe_t *canvas, co_aix x, co_aix y); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
97 extern void mbe_new_path(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
98 extern void mbe_curve_to(mbe_t *canvas, co_aix x1, co_aix y1, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
99 co_aix x2, co_aix y2, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
100 co_aix x3, co_aix y3); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
101 extern void mbe_restore(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
102 extern void mbe_move_to(mbe_t *canvas, co_aix x, co_aix y); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
103 extern void mbe_line_to(mbe_t *canvas, co_aix x, co_aix y); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
104 extern int mbe_in_fill(mbe_t *canvas, co_aix x, co_aix y); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
105 extern void mbe_stroke(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
106 extern mbe_t *mbe_create(mbe_surface_t *target); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
107 extern void mbe_destroy(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
108 extern void mbe_paint(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
109 extern void mbe_save(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
110 extern void mbe_fill(mbe_t *canvas); |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
111 extern void mbe_clip(mbe_t *canvas); |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
112 |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
113 extern mbe_font_face_t * mbe_query_font_face(const char *family, |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
114 int slant, int weight); |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
115 extern void mbe_free_font_face(mbe_font_face_t *face); |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
116 |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
117 extern void mbe_clear(mbe_t *canvas); |
512
d186d1e24458
Change prototype of mbe_copy_source().
Thinker K.F. Li <thinker@branda.to>
parents:
482
diff
changeset
|
118 extern void mbe_copy_source(mbe_t *src, mbe_t *dst); |
473
ba64f928542b
Remove mbe_matrix_t type.
Thinker K.F. Li <thinker@branda.to>
parents:
472
diff
changeset
|
119 extern void mbe_transform(mbe_t *mbe, co_aix matrix[6]); |
472
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
120 extern void mbe_arc(mbe_t *mbe, co_aix x, co_aix y, co_aix radius, |
4254eaa699d0
Declare functions that should be implemented by Skia graphic engine
Thinker K.F. Li <thinker@branda.to>
parents:
470
diff
changeset
|
121 co_aix angle_start, co_aix angle_stop); |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
122 /* @} */ |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
123 |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
124 #endif /* __MB_GE_SKIA_H_ */ |