1
Graphics / 2D drawing canvas
« on: June 08, 2013, 05:11:55 pm »
Hi.
I'm new to this forum and to SFML.
I would like to know if there is any 2d rendering API like Html5 CanvasRenderingContext2D or Flash Graphics
Something like:
Canvas canvas;
canvas.fillRect(10, 10, 55, 50);
canvas.drawCircle(10, 10, 20);
And then draw it to window:
window.draw(canvas);
Would make it allot easier to draw some primitives and paths instehead of creating multiple objects and drawing them to window.
Is there anything like that?
I'm new to this forum and to SFML.
I would like to know if there is any 2d rendering API like Html5 CanvasRenderingContext2D or Flash Graphics
Something like:
Canvas canvas;
canvas.fillRect(10, 10, 55, 50);
canvas.drawCircle(10, 10, 20);
And then draw it to window:
window.draw(canvas);
Would make it allot easier to draw some primitives and paths instehead of creating multiple objects and drawing them to window.
Is there anything like that?