I would like to have a complex animation play in my window. Such as
calligraphy gradually being drawn on screen (think of a curvy drawing
line on screen being output at a certain speed). Although I’m still new
to SDL, I have a basic knowledge of surfaces/textures, and I know how to
rotate a texture, etc, … However I’m not sure how I would go about
slowly displaying on screen a curve. I have a fair knowledge of
SVG/Inkscape and could create many many pngs to gradually display that
line, but I’m wondering if there’s not a better way.
The better way would be to specify the geometry as you want it drawn. SDL
hasn’t incorporated this functionality yet (see Gabriel’s
SDL_RenderGeometry(): https://bugzilla.libsdl.org/show_bug.cgi?id=1734).
You could use the patch there or you can use OpenGL directly to do it.
Jonny DOn Wed, Oct 23, 2013 at 10:23 AM, Loic J. Duros wrote:
Hi:
I would like to have a complex animation play in my window. Such as
calligraphy gradually being drawn on screen (think of a curvy drawing
line on screen being output at a certain speed). Although I’m still new
to SDL, I have a basic knowledge of surfaces/textures, and I know how to
rotate a texture, etc, … However I’m not sure how I would go about
slowly displaying on screen a curve. I have a fair knowledge of
SVG/Inkscape and could create many many pngs to gradually display that
line, but I’m wondering if there’s not a better way.