C bindings?

41 views
Skip to first unread message

Cosmin Apreutesei

unread,
Jul 29, 2012, 10:44:23 AM7/29/12
to fog...@googlegroups.com
Hi, I want to try out fog-2d in Lua but I would need a pure C binding to make a ffi binding. Anyone wrote one or planning to write one in the near future?

Petr Kobalíček

unread,
Aug 1, 2012, 9:20:05 AM8/1/12
to fog...@googlegroups.com
Hi,

there is currently no C binding available and it's not planned at the
moment. The problem is that API sometimes changes and having bindings
means more work when the change is necessary. I don't know how FFI
works, but core part of Fog is written using "C-like" low-level
interface using CDECL calling convention, but C++ compiler is needed
to reference these functions in your code.

This C low-level interface was designed for programming languages
which can call C functions, but if FFI needs symbol lookup, it will be
hard to wrap.

There is planned V8 bindings for testing, but the work didn't start yet.

Best regards
Petr
Reply all
Reply to author
Forward
0 new messages