lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Have you looked at the 'sdl_module.cpp' which does the C/Lua interface? I've done that and i tend to place documentation within the source code (hate to maintain two sets of the same stuff!). Example:

//---
// [rect_tbl]= SDL_ListModes( format_ref, surf_flags )
//
// Returns: - non-empty table, listing the available modes
//          - empty table '{ }', if any mode is okay
//          - 'nil' if no modes are supported
//

-ak


Andy Jones kirjoittaa lauantaina, 20. joulukuuta 2003, kello 23:52:

Does anyone know if there is some documentation for SDL that does not rely on knowledge of C?

Just a listing of the functions as they would be called in Lua would do. I could make sense of the C documentation and the headers using that.

Or any documentation regarding LuaCheia? For example, there seems to be some help files but the extensions are ".x" - no explanation.

Andy.