Subversion Repositories Kolibri OS

Rev

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

Rev 6451 Rev 6452
Line 45... Line 45...
45
	BUF2D_OPT_CROP_BOTTOM = 4,
45
	BUF2D_OPT_CROP_BOTTOM = 4,
46
	BUF2D_OPT_CROP_RIGHT = 8
46
	BUF2D_OPT_CROP_RIGHT = 8
47
};
47
};
Line 48... Line 48...
48
 
48
 
-
 
49
extern void (*buf2d_create_asm)(struct buf2d_struct *) __attribute__((__stdcall__));
Line 49... Line 50...
49
extern void (*buf2d_create_asm)(struct buf2d_struct *) __attribute__((__stdcall__));
50
extern void (*buf2d_curve_bezier_asm)(struct buf2d_struct *, unsigned int, unsigned int, unsigned int, unsigned int) __attribute__((__stdcall__));
50
 
51
 
51
struct buf2d_struct* buf2d_create(uint16_t tlx, uint16_t tly, unsigned int sizex, unsigned int sizey, unsigned int font_bgcolor, uint8_t color_bit)
52
struct buf2d_struct* buf2d_create(uint16_t tlx, uint16_t tly, unsigned int sizex, unsigned int sizey, unsigned int font_bgcolor, uint8_t color_bit)
52
{
53
{
Line 59... Line 60...
59
	new_buf2d_struct -> color_bit = color_bit;
60
	new_buf2d_struct -> color_bit = color_bit;
60
	buf2d_create_asm(new_buf2d_struct);
61
	buf2d_create_asm(new_buf2d_struct);
61
    return new_buf2d_struct;
62
    return new_buf2d_struct;
62
}
63
}
Line -... Line 64...
-
 
64
 
-
 
65
void buf2d_curve_bezier(struct 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)
-
 
66
{
-
 
67
	buf2d_curve_bezier_asm(buf, (p0_x<<16)+p0_y, (p1_x<<16)+p1_y, (p2_x<<16)+p2_y, color);
-
 
68
}
63
 
69
 
64
extern void (*buf2d_draw)(struct buf2d_struct *) __attribute__((__stdcall__));
70
extern void (*buf2d_draw)(struct buf2d_struct *) __attribute__((__stdcall__));
65
extern void (*buf2d_clear)(struct buf2d_struct *, unsigned int) __attribute__((__stdcall__));
71
extern void (*buf2d_clear)(struct buf2d_struct *, unsigned int) __attribute__((__stdcall__));
66
extern void (*buf2d_delete)(struct buf2d_struct *) __attribute__((__stdcall__));
72
extern void (*buf2d_delete)(struct buf2d_struct *) __attribute__((__stdcall__));
67
extern void (*buf2d_rotate)(struct buf2d_struct *, unsigned int) __attribute__((__stdcall__));
73
extern void (*buf2d_rotate)(struct buf2d_struct *, unsigned int) __attribute__((__stdcall__));