[Cogl] Cogl in Python

Artur Skawina art.08.09 at gmail.com
Sun Apr 8 10:22:12 PDT 2012


On 04/08/12 18:46, Martin Owens wrote:
> On Sun, 2012-04-08 at 18:16 +0200, Artur Skawina wrote:
>> FWIW, i created working D bindings from the g-i data, though this
>> patch
>> was needed at the time:
>> http://lists.freedesktop.org/archives/cogl/2012-February/000019.html
>>
>> The result looks like this:
>> http://repo.or.cz/w/girtod.git/blob/HEAD:/gtk2/cogl.d
>>
>> Using the GI files made this task relatively simple, w/o them it
>> probably wouldn't
>> have happened (it was basically a side effect of doing bindings for
>> clutter). 
> 
> So the missing part in gi was context information? I'm having a hard
> time picking out which parts of your patch was gir-generated and which
> parts you changed later. Was the project successful for D?

The whole cogl.d module is built *only* from GI data; the two exceptions
are missing XVisualInfo and XEvent definitions, plus likely a few
workarounds in the generator (girtod) for weird and/or broken GI info.

The cogl patch was necessary because parts of the API were not being
included in the GI data at all; some basic things were missing, making
the bindings unusable.

Was it successful? Well, it works; i ported the crate example as a test,
but other than that i haven't yet done anything with cogl, and don't know
if anybody else uses Cogl from D. 
It was a side effect of creating GTK bindings, but now that it works, i'd
like it to keep working...

artur


More information about the Cogl mailing list