On Thu, Feb 26, 2015 at 8:24 PM, Branko <bran...@s5tehnika.net> wrote: > I am not familiar with evas, but judging from what is see in GTK+, there > seem to be no documented way of accessing drawable buffer directly, as > if it was fb ( succession of pixels). > GTK2 has GDK and GTK3 is forcing the use of Cairo. > > I am working on old PCB CAD ( part of gEDA for electronics design) and I > have a couple of ideas how efficient 2D package should look and work. > > In order to try my ideas, I thought of trying to draw directly some bits > instead calling gdk_whatever and see how it works. > > Unfortunately, I can't find any useful data about directly poking > bits&bytes in into GtKWindow. > > Could this be easily done with EFL/Evas ?
Yes. You can easily get and modify the pixels of an Evas_Object_Image the way you want. Go to https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/ui/evas_guide_image.htm and search for "Setting Raw Data to Image Object". > It would also be helpfull to get info about how the underlying X or > Wayland handles such buffers. > > I mean, if I have say screen of 1600x1200 pixels, each consisting of 1 > 32bit value and I demand drawable window of dimensions 512*512 somewhere > on center, what do I get and how does it get to final buffer that gets > scanned ? > > I mean, do I get a simple pointet to buffer of length 512x512x4bytes or > do I get 512 stripes that are 1600 pixels apart ? You get one buffer per Evas_Object_Image. > Is there a way to actually access the buffer that is getting scanned ? No, Evas is a scenegraph. It does manage all the rendering of all the primitive object in the best possible way. If you have idea on how to improve rendering, that's where you should actually play :-) Also for now, we don't have any scenegraph object for vector graphics, but we are just working on it right now and may push that forward in the next 1.14 release. You can look at my branch, devs/cedric/evas_vg to see what I mean by that. Actually if you had feedback on what you are looking for in a vector API, it would be really interesting. Regards, -- Cedric BAIL ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel