libluabind-examples

luabind c++ binding for lua: example files

Luabind is a library that helps you create bindings between C++ and Lua.
It has the ability to expose functions and classes, written in C++, to
Lua. It will also supply the functionality to define classes in lua and
let them derive from other lua classes or C++ classes. Lua classes can
override virtual functions from their C++ baseclasses. It is written
towards Lua 5.0, and does not work with other Lua versions.

This package contains some luabind examples, including the basic "helloworld"
and some more advanced examples.

/usr/share/doc/libluabind-examples/examples/cln/README

/usr/share/doc/libluabind-examples/examples/glut/README

this examples shows how to bind c/c++ functions to use them in lua.
It builds the executable glut_bind, which should display an opengl
window.
Needed: libluabind-dev, freeglut3-dev

/usr/share/doc/libluabind-examples/examples/hello_world/README

this example will build an extension module as a shared library, use
loadlib() from within the lua interpreter to load the library, it will
then export a function named greet() which you can call.
Needed: libluabind-dev
> loadlib('./hello_world.so', 'init')()
> greet()
Hello world!
>