Hi Ezequiel Thanks very much for the reply !
I do not know lua but i recognise the structure easely. In the mean time i did some further coding and i made it working by creating a subsurface for the text instead of using clipping. And then i made a clipping version also. I think the clipping version is the least expensive in cpu terms. I'am running it on a 200Mhz ARM9 (at91sam9261) so i need to take this in mind.... Thanks , Johan Short video : http://www.youtube.com/watch?v=fNlbHnq391I -----Oorspronkelijk bericht----- Van: Ezequiel García [mailto:[email protected]] Verzonden: dinsdag 17 april 2012 21:18 Aan: Sagaert Johan CC: [email protected] Onderwerp: Re: [directfb-users] scrolling text : question Hi, On 4/16/12, Sagaert Johan <[email protected]> wrote: > I am relatively new to directFB and i am struggling to create a > scrolling text. > Yes you are in the right direction. I maintain a Lua binding for DirectFB [1], and I've created a small example [2] to show you exactly how a scrolling window can be done. I used this approach for a Closed Caption STB module. I apologise for having the example in directfb-lua, rather than plain C. It's because Lua allows for readable, compact code (and to showoff the binding a little, the example is just 100 lines :) and it allows for fast debugging and testing. I'm sure you'll be able to translate this to C, since it uses the *same* syntax as DirectFB library (per design). Also, you can also give it a shot as it is! It should compile right out of the box. Feel free to report any issues. Hope it helps, Ezequiel. [1] https://github.com/ezequielgarcia/directfb-lua/ [2] https://github.com/ezequielgarcia/directfb-lua/blob/master/examples/scroll.lua _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
