If the shape is an image I would put it on a new surface (Not sub-surface, which is sub portion of an existing layer) and then move the new layer around in coordinates. If I were to animate the shape, I would animate at each frame tick that new surface.
DFB will flatten (z plane) the visible surfaces for you so they render properly, so you don't have to. On Thu, Mar 4, 2010 at 6:32 AM, Diego A. Fons <[email protected]> wrote: > Hi, > > What's the best way of drawing a moving shape over an image? > > Right now I have an IDirectFBWindow and an IDirectFBImageProvider is > rendered in the window's surface, then I must draw a moving shape over this > image. > I tried getting a sub surface and drawing on it but I'm not able to clear > it because the image is cleared too (in a previous post I was able to > realise the problem). > Also I tried to create a new surface for drawing the moving shape and then > blit the surfaces, but the image is cleared and the result is a noisy image. > > So, can anyone help me on this issue? > > I hope you can understand my problem. > > Regards, > Diego A. Fons. > _______________________________________________ > directfb-users mailing list > [email protected] > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users >
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
