comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Cairo Bindings now added to Gnoga
Date: Tue, 28 Oct 2014 22:07:20 +0100
Date: 2014-10-28T22:07:20+01:00	[thread overview]
Message-ID: <lh70gheq87w.ym8gxivr1u2i$.dlg@40tude.net> (raw)
In-Reply-To: 2afaef11-daa3-4c44-bcd4-fb8f3ca19ac6@googlegroups.com

On Tue, 28 Oct 2014 12:08:02 -0700 (PDT), David Botton wrote:

>> Gnoga rather usee browser for rendering.
> 
> Correct and browsers have both bitmap surfaces and SVG surfaces.
>
> Currently with Cairo I am just outputting directly to files for the
> browser to load up, however at a later point, I'll add code to have cairo
> output directly over the websocket.

I see. Thanks for the explanation. Even with websockets that would be
awfully slow and lose nice doubly buffering Cairo has to prevent
flickering.

I wonder if the browser could have a proper context over websocket rather
than SVG surface.

I am no expert in the matter. What is your take on this:

https://gramps-project.org/wiki/index.php?title=Broadway_Gtk3_backend

Broadway looks like a proper GTK (and thus Cairo) backend.

However, the use-case scenario for Broadway is unclear to me. It looks like
GTK would run on the server side doing much low-level rendering remotely in
the browser. Is that correct?

This does not look good in the case when a single server works with many
clients. It is fine when the server and one client are on the same host.
But why not to use the native backend then?

Although it might be an interesting option for embedded applications
running under VxWorks (no GTK at all) or under Linux without X11 support.

>> Making it a bit more concrete, can you use this:
>> 
>> http://www.dmitry-kazakov.de/ada/aicwl.htm
> 
> Actually your controls were what gave me the idea of doing the Cairo
> bindings. At some point when I can take the time I want to attempt to
> adopt them to Gnoga.

Let me know if you find bugs or need changes.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2014-10-28 21:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24  6:07 Cairo Bindings now added to Gnoga David Botton
2014-10-28 16:18 ` Dmitry A. Kazakov
2014-10-28 19:08   ` David Botton
2014-10-28 21:07     ` Dmitry A. Kazakov [this message]
2014-10-28 22:18       ` David Botton
2014-10-29  9:06         ` Dmitry A. Kazakov
2014-10-29 15:11           ` David Botton
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox