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.


Messages - porfirio

Pages: [1]
1
Graphics / Re: 2D drawing canvas
« on: June 09, 2013, 08:33:12 pm »
I think someone made a SVG add on to SFML at some point, what happend to that project? Because that would be perfect for drawing paths.

Anyway you could implement your own Canvas/Path interface if you want and use sf::VertexArray in the background.

Even if SFML maybe not have exactly what you need it provides the tools you need in order to do it yourself ;)

Thank you all.

SFML seems to be nice and powerfull, and the community verry friendly :D
I've looked at other libs like SDL and Allegro but SFML is C++ and seems easier to bootstrap.

2
Graphics / Re: 2D drawing canvas
« on: June 08, 2013, 05:46:32 pm »
No. But SFML has classes for drawing shapes, so if your requirements are not too high it could be enough.

Yeah, for basic shapes it is enough. But a good path api with lineTo, acrTo, quadraticCurveTo, etc... would be nice, but hard to implement i imagine.

3
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]
anything