Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - porfirio

Pages: [1]
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?

Pages: [1]