src/ascension/2d.h

changeset 158
f650994ec543
parent 151
42960d0c879b
equal deleted inserted replaced
157:d6c2f028d8c9 158:f650994ec543
35 35
36 typedef struct asc_rectangle_s { 36 typedef struct asc_rectangle_s {
37 AscSceneNode node; 37 AscSceneNode node;
38 AscMesh mesh; 38 AscMesh mesh;
39 asc_col4f color; 39 asc_col4f color;
40 unsigned int width; 40 float width;
41 unsigned int height; 41 float height;
42 float radius;
43 float thickness;
42 int flags; 44 int flags;
43 } AscRectangle; 45 } AscRectangle;
44 46
45 struct asc_rectangle_create_args { 47 struct asc_rectangle_create_args {
46 asc_recti bounds; 48 asc_recti bounds;
47 int x; 49 int x;
48 int y; 50 int y;
49 unsigned int width; 51 unsigned int width;
50 unsigned int height; 52 unsigned int height;
53 /**
54 * Corner radius.
55 */
56 unsigned int radius;
57 /**
58 * Border thickness
59 */
60 unsigned int thickness;
51 bool filled; 61 bool filled;
52 }; 62 };
53 63
54 AscSceneNode *asc_rectangle_create(struct asc_rectangle_create_args args); 64 AscSceneNode *asc_rectangle_create(struct asc_rectangle_create_args args);
55 65

mercurial