8 static uint32_t buffer[WIDTH * HEIGHT];
10 int main(int argc, char **argv)
12 //Initialize TizenVG Engine
16 auto canvas = tvg::SwCanvas::gen(buffer, WIDTH, HEIGHT);
18 //Prepare a Shape (Rectangle)
19 auto shape1 = tvg::ShapeNode::gen();
20 shape1->appendRect(0, 0, 400, 400, 0); //x, y, w, h, corner_radius
21 shape1->fill(0, 255, 0, 255); //r, g, b, a
23 /* Push the shape into the Canvas drawing list
24 When this shape is into the canvas list, the shape could update & prepare
25 internal data asynchronously for coming rendering.
26 Canvas keeps this shape node unless user call canvas->clear() */
27 canvas->push(move(shape1));
32 //Terminate TizenVG Engine