Subversion Repositories Kolibri OS

Rev

Rev 9810 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9810 Rev 9811
Line 28... Line 28...
28
    BUF2D_OPT_CROP_LEFT = 2,
28
    BUF2D_OPT_CROP_LEFT = 2,
29
    BUF2D_OPT_CROP_BOTTOM = 4,
29
    BUF2D_OPT_CROP_BOTTOM = 4,
30
    BUF2D_OPT_CROP_RIGHT = 8
30
    BUF2D_OPT_CROP_RIGHT = 8
31
};
31
};
Line -... Line 32...
-
 
32
 
-
 
33
int kolibri_buf2d_init(void);
32
 
34
 
33
DLLAPI void __stdcall buf2d_create_asm(buf2d_struct*);
35
extern void __stdcall (*buf2d_create_asm)(buf2d_struct*);
Line 34... Line 36...
34
DLLAPI void __stdcall buf2d_curve_bezier_asm(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
36
extern void __stdcall (*buf2d_curve_bezier_asm)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
35
 
37
 
36
buf2d_struct* buf2d_create(uint16_t tlx, uint16_t tly, unsigned int sizex, unsigned int sizey, unsigned int font_bgcolor, uint8_t color_bit)
38
buf2d_struct* buf2d_create(uint16_t tlx, uint16_t tly, unsigned int sizex, unsigned int sizey, unsigned int font_bgcolor, uint8_t color_bit)
37
{
39
{
Line 49... Line 51...
49
void buf2d_curve_bezier(buf2d_struct* buf, unsigned int p0_x, unsigned int p0_y, unsigned int p1_x, unsigned int p1_y, unsigned int p2_x, unsigned int p2_y, unsigned int color)
51
void buf2d_curve_bezier(buf2d_struct* buf, unsigned int p0_x, unsigned int p0_y, unsigned int p1_x, unsigned int p1_y, unsigned int p2_x, unsigned int p2_y, unsigned int color)
50
{
52
{
51
    buf2d_curve_bezier_asm(buf, (p0_x << 16) + p0_y, (p1_x << 16) + p1_y, (p2_x << 16) + p2_y, color);
53
    buf2d_curve_bezier_asm(buf, (p0_x << 16) + p0_y, (p1_x << 16) + p1_y, (p2_x << 16) + p2_y, color);
52
}
54
}
Line 53... Line 55...
53
 
55
 
54
DLLAPI void __stdcall buf2d_draw(buf2d_struct*);
56
extern void __stdcall (*buf2d_draw)(buf2d_struct*);
55
DLLAPI void __stdcall buf2d_clear(buf2d_struct*, unsigned int);
57
extern void __stdcall (*buf2d_clear)(buf2d_struct*, unsigned int);
56
DLLAPI void __stdcall buf2d_delete(buf2d_struct*);
58
extern void __stdcall (*buf2d_delete)(buf2d_struct*);
57
DLLAPI void __stdcall buf2d_rotate(buf2d_struct*, unsigned int);
59
extern void __stdcall (*buf2d_rotate)(buf2d_struct*, unsigned int);
58
DLLAPI void __stdcall buf2d_resize(buf2d_struct*, unsigned int, unsigned int, unsigned int);
60
extern void __stdcall (*buf2d_resize)(buf2d_struct*, unsigned int, unsigned int, unsigned int);
59
DLLAPI void __stdcall buf2d_line(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
61
extern void __stdcall (*buf2d_line)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
60
DLLAPI void __stdcall buf2d_line_sm(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
62
extern void __stdcall (*buf2d_line_sm)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
61
DLLAPI void __stdcall buf2d_rect_by_size(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
63
extern void __stdcall (*buf2d_rect_by_size)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
62
DLLAPI void __stdcall buf2d_filled_rect_by_size(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
64
extern void __stdcall (*buf2d_filled_rect_by_size)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
63
DLLAPI void __stdcall buf2d_circle(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
65
extern void __stdcall (*buf2d_circle)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
64
DLLAPI void __stdcall buf2d_img_hdiv2(buf2d_struct*);
66
extern void __stdcall (*buf2d_img_hdiv2)(buf2d_struct*);
65
DLLAPI void __stdcall buf2d_img_wdiv2(buf2d_struct*);
67
extern void __stdcall (*buf2d_img_wdiv2)(buf2d_struct*);
66
DLLAPI void __stdcall buf2d_conv_24_to_8(buf2d_struct*, unsigned int);
68
extern void __stdcall (*buf2d_conv_24_to_8)(buf2d_struct*, unsigned int);
67
DLLAPI void __stdcall buf2d_conv_24_to_32(buf2d_struct*, unsigned int);
69
extern void __stdcall (*buf2d_conv_24_to_32)(buf2d_struct*, unsigned int);
68
DLLAPI void __stdcall buf2d_bit_blt_transp(buf2d_struct*, unsigned int, unsigned int, buf2d_struct*);
70
extern void __stdcall (*buf2d_bit_blt_transp)(buf2d_struct*, unsigned int, unsigned int, buf2d_struct*);
69
DLLAPI void __stdcall buf2d_bit_blt_alpha(buf2d_struct*, unsigned int, unsigned int, buf2d_struct*);
71
extern void __stdcall (*buf2d_bit_blt_alpha)(buf2d_struct*, unsigned int, unsigned int, buf2d_struct*);
70
DLLAPI void __stdcall buf2d_convert_text_matrix(buf2d_struct*);
72
extern void __stdcall (*buf2d_convert_text_matrix)(buf2d_struct*);
71
DLLAPI void __stdcall buf2d_draw_text(buf2d_struct*, buf2d_struct*, const char*, unsigned int, unsigned int);
73
extern void __stdcall (*buf2d_draw_text)(buf2d_struct*, buf2d_struct*, const char*, unsigned int, unsigned int);
72
DLLAPI void __stdcall buf2d_crop_color(buf2d_struct*, unsigned int, unsigned int);
74
extern void __stdcall (*buf2d_crop_color)(buf2d_struct*, unsigned int, unsigned int);
73
DLLAPI void __stdcall buf2d_offset_h(buf2d_struct*, unsigned int, unsigned int, unsigned int);
75
extern void __stdcall (*buf2d_offset_h)(buf2d_struct*, unsigned int, unsigned int, unsigned int);
74
DLLAPI void __stdcall buf2d_flood_fill(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
76
extern void __stdcall (*buf2d_flood_fill)(buf2d_struct*, unsigned int, unsigned int, unsigned int, unsigned int);
75
DLLAPI void __stdcall buf2d_set_pixel(buf2d_struct*, unsigned int, unsigned int, unsigned int);
77
extern void __stdcall (*buf2d_set_pixel)(buf2d_struct*, unsigned int, unsigned int, unsigned int);
76
DLLAPI unsigned __stdcall buf2d_get_pixel(buf2d_struct*, unsigned int, unsigned int);
78
extern unsigned __stdcall (*buf2d_get_pixel)(buf2d_struct*, unsigned int, unsigned int);
77
DLLAPI void __stdcall buf2d_flip_h(buf2d_struct*);
79
extern void __stdcall (*buf2d_flip_h)(buf2d_struct*);
78
DLLAPI void __stdcall buf2d_flip_v(buf2d_struct*);
80
extern void __stdcall (*buf2d_flip_v)(buf2d_struct*);
Line 79... Line 81...
79
DLLAPI void __stdcall buf2d_filter_dither(buf2d_struct*, unsigned int);
81
extern void __stdcall (*buf2d_filter_dither)(buf2d_struct*, unsigned int);