[cairo] LuaJIT FFI bindings for cairo/pixman

Dimiter 'malkia' Stanev malkia at gmail.com
Fri Oct 28 14:55:25 PDT 2011


	Hi guys,

	I've been working for the last few months on luajit ffi bindings for 
cairo, and other open source libs (pixman included). They project is 
located here, and comes with precompiled libs for win32/64, osx 
(universal) and  linux (ubuntu x86/efikamx-arm)

	http://github.com/malkia/ufo

The bindings are here, and can be used separately in other projects with 
little changes:
	https://github.com/malkia/ufo/blob/master/ffi/cairo.lua
	https://github.com/malkia/ufo/blob/master/ffi/pixman.lua

For demonstrations, here is a simple paint app, with SDL as backend 
(also exposed through luajit ffi):
	https://github.com/malkia/ufo/blob/master/samples/cairo/doodle.lua
	./luajit samples/cairo/doodle.lua (for unix/osx)
	luajit samples/cairo/doodle.lua (for windows)

There are some more samples, some of them stolen from the cairo testbed 
and transformed.
	
	Thanks,
	Dimiter 'malkia' Stanev
	


More information about the cairo mailing list