<div>
<div>Hi Joshua,</div>
<div> </div>
<div>I don't know whether it will work or not but, If there is OpenGL backend to cairo, then you just need to replace all OpenGL drawing with OpenGLES drawing and need to add native surface creation and EGL context creation logic.</div>
<div> </div>
<div>Regards,</div>
<div>Yogesh,<br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello.<br>This is Joshua.<br><br>What I want to know is, is there any plan to build OpenGLES backend of<br>
Cairo?<br>Or, is there anyone who interested in it?<br><br><br>I know OpenVG backend is supported now(1.9.4 & 1.9.6) for GPU acceleration<br>on the embedded environment.<br>And as I know, the concept of OpenVG is similar with Cairo as a vector<br>
graphics, more that OpenGL/GLES.<br><br>But I'm still interested about OpenGLES backend, and the the performance<br>versus OpenVG backend.<br>Could OpenVG backend show better performance than OpenGLES backend in all of<br>
the cases?<br><br>And, I'm curious about why only OpenGL & OpenVG backend are supported<br>officially, except OpenGLES.<br><br><br>Could you give me any comments about those?<br><br>Thanks.<br><br>Best Regards,<br>
Joshua.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.cairographics.org/archives/cairo/attachments/20100405/32543283/attachment.htm">http://lists.cairographics.org/archives/cairo/attachments/20100405/32543283/attachment.htm</a>><br>
<br>------------------------------<br><br>Message: 2<br>Date: Mon, 05 Apr 2010 11:17:24 GMT<br>From: "Tim Teulings" <<a href="mailto:rael@edge.ping.de">rael@edge.ping.de</a>><br>Subject: [cairo] How do I...?<br>
To: <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>Message-ID: <<a href="mailto:20100405111724.3853.qmail@lilly.ping.de">20100405111724.3853.qmail@lilly.ping.de</a>><br>Content-Type: text/plain; format=flowed; charset="iso-8859-1"<br>
<br>Hallo!<br><br>I use cairo as part of my libosmsocut project (<a href="http://libosmscout.sf.net">http://libosmscout.sf.net</a>) to<br>draw maps based on OpenStreetMap data (after using it as possibly backend<br>for drawing widgets as part of libIllumination).<br>
<br>Cairo is very useful for this on over all I'm very happy (thanks for that<br>great work!)!<br><br>I'm now starting to implement more sophisticated draw features and have some<br>questions how to realize this using cairo and how much I can handle using<br>
cairo features itself and how much of this I have to do in my code (by doing<br>some preprocessing for example). I'm searching for solutions that are<br>optimized for visual quality but even more for drawing speed (especially on<br>
slow devices).<br><br>Currently ways are drawn by just stroking paths using move_to and line_to<br>and setting color, pen thickness as appropiate. Coordinates are a result of<br>the (mercator) transformed coordinates I get from OSM nodes (as part of a<br>
way).<br><br>This should be OK, I assume ;-)?<br><br>For outlines I simply draw a line twice with different line thickness.<br>Should be still OK, but is there possibly a faster/simpler solution (=> path<br>outline?)?<br>
<br>Now I want to further decorate the drawn way.<br><br>* First I want to have periodical markers on the way like for example arrows<br>that show the driving direction (oneway) or images that signal bumpers. The<br>markers should be centered on the line. How do I do this?<br>
<br>* Now, in the case that a way has multiple lanes (motorway for example), I<br>also want to draw lane seperation markers (at least on higher zoom level<br>:-)). For the case that the the way exists of two lanes this is simple<br>
because I just can draw another line with different color and width over the<br>existing path. But what do I do in case where a motorway has three lanes? If<br>I still just draw another line over the existing way I now have to calculate<br>
new polygon point coordinates that do the necessary "away from line center"<br>transformation or is there a way where cairo can do this for me, too?<br><br>--<br>Gru?...<br> Tim.<br><br><br>------------------------------<br>
<br>_______________________________________________<br>cairo mailing list<br><a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br><a href="http://lists.cairographics.org/mailman/listinfo/cairo">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
<br>End of cairo Digest, Vol 57, Issue 6<br>************************************<br></blockquote></div><br>