API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

Lua

Lua is a fast, lightweight, embeddable scripting language often used in gaming, and applicable to resource-constrained mobile devices. In addition to the Trig environment, the open-source Lua 5.1 Virtual Machine is also available in the C/C++ environment, so it is possible to write an app that runs in Lua VM and behaves as it would in a desktop environment. The Brew MP API into Lua VM follows as closely as possible the standard open-source C API from the standards group that manages Lua. More and more, as we develop IDL interfaces in Brew MP, developers can access platform APIs directly from the Lua environment just by including the Lua bindings in the app. They can also develop a class or service completely in Lua. If an interface in that class is exposed in IDL, then it is easy to access from C/C++; for interfaces not available in IDL, it is still possible to access them from a Lua script using an actor or ActionScript extension to implement a Lua library extension in C code. We think this will become a more powerful programming model and scripting language in Brew MP, even to eventually scripting entire applications in Lua, building native UI applications entirely with Lua scripts rather than C code for close to native performance.

ClassAEECLSID_Lua_5_1
ConstantILua_ENVIRONINDEX
ILua_GCOption
ILua_GLOBALSINDEX
ILua_LuaType
ILua_MULTRET
ILua_NOREF
ILua_REFNIL
ILua_REGISTRYINDEX
Data structureAEELuaCFunction
AEELuaDebugHookEvent
AEELuaDebugHookFunc
AEELuaDebugInfoType
AEELuaRegFunc
HelperLua_CallMeta
Lua_GetGlobal
Lua_GetMetaField
Lua_GetNamedMetaTable
Lua_Is
Lua_IsBoolean
Lua_IsFunction
Lua_IsLightUserData
Lua_IsNil
Lua_IsNone
Lua_IsNoneOrNil
Lua_IsNumber
Lua_IsString
Lua_IsTable
Lua_IsUserData
Lua_NewTable
Lua_PushLiteral
Lua_PushWLiteral
Lua_SetGlobal
Lua_StrLen
Lua_UpValueIndex
Lua_WStrLen
InterfaceILua
ILuaBuffer
ILuaDebug
ILuaEx
ILuaFunction
ILuaLib
MethodILuaBuffer_AddRef()
ILuaBuffer_AddString()
ILuaBuffer_AddValue()
ILuaBuffer_PushResult()
ILuaBuffer_QueryInterface()
ILuaBuffer_Release()
ILuaDebug_AddRef()
ILuaDebug_GetCurrentFunction()
ILuaDebug_GetHook()
ILuaDebug_GetInfo()
ILuaDebug_GetInfoCurrentLine()
ILuaDebug_GetInfoLastLineDefined()
ILuaDebug_GetInfoLineDefined()
ILuaDebug_GetInfoName()
ILuaDebug_GetInfoNameWhat()
ILuaDebug_GetInfoNumUpvalues()
ILuaDebug_GetInfoSource()
ILuaDebug_GetInfoWhat()
ILuaDebug_GetLocal()
ILuaDebug_GetStack()
ILuaDebug_GetUpvalue()
ILuaDebug_GetValidLines()
ILuaDebug_QueryInterface()
ILuaDebug_Release()
ILuaDebug_SetHook()
ILuaDebug_SetLocal()
ILuaDebug_SetUpvalue()
ILuaEx_AddRef()
ILuaEx_ArgError()
ILuaEx_Call()
ILuaEx_CheckInteger()
ILuaEx_CheckInterface()
ILuaEx_CheckLString()
ILuaEx_CheckLWString()
ILuaEx_CheckNumber()
ILuaEx_CheckStack()
ILuaEx_CheckString()
ILuaEx_CheckType()
ILuaEx_CheckUData()
ILuaEx_CheckWString()
ILuaEx_Concat()
ILuaEx_CreateBuffer()
ILuaEx_CreateTable()
ILuaEx_Dump()
ILuaEx_Equal()
ILuaEx_Error()
ILuaEx_ErrorMsg()
ILuaEx_GC()
ILuaEx_GetFEnv()
ILuaEx_GetField()
ILuaEx_GetMetaTable()
ILuaEx_GetStatus()
ILuaEx_GetTable()
ILuaEx_GetTop()
ILuaEx_Insert()
ILuaEx_IsConvertible()
ILuaEx_IsInteger()
ILuaEx_IsInterface()
ILuaEx_IsWString()
ILuaEx_LessThan()
ILuaEx_Load()
ILuaEx_NewMetaTable()
ILuaEx_NewThread()
ILuaEx_NewUserData()
ILuaEx_Next()
ILuaEx_ObjLen()
ILuaEx_OpenLib()
ILuaEx_PCall()
ILuaEx_Pop()
ILuaEx_PushBoolean()
ILuaEx_PushCClosure()
ILuaEx_PushCFunction()
ILuaEx_PushFString()
ILuaEx_PushILuaFunction()
ILuaEx_PushInteger()
ILuaEx_PushInterface()
ILuaEx_PushLightUserData()
ILuaEx_PushNil()
ILuaEx_PushNumber()
ILuaEx_PushString()
ILuaEx_PushThread()
ILuaEx_PushValue()
ILuaEx_PushWString()
ILuaEx_QueryInterface()
ILuaEx_RawEqual()
ILuaEx_RawGet()
ILuaEx_RawGetI()
ILuaEx_RawSet()
ILuaEx_RawSetI()
ILuaEx_Ref()
ILuaEx_Register()
ILuaEx_RegisterLib()
ILuaEx_Release()
ILuaEx_Remove()
ILuaEx_Replace()
ILuaEx_Resume()
ILuaEx_SetFEnv()
ILuaEx_SetField()
ILuaEx_SetMetaTable()
ILuaEx_SetTable()
ILuaEx_SetTop()
ILuaEx_ToBoolean()
ILuaEx_ToCFunction()
ILuaEx_ToInteger()
ILuaEx_ToInterface()
ILuaEx_ToLString()
ILuaEx_ToLWString()
ILuaEx_ToNumber()
ILuaEx_ToString()
ILuaEx_ToThread()
ILuaEx_ToUserData()
ILuaEx_ToWString()
ILuaEx_Type()
ILuaEx_TypeError()
ILuaEx_TypeName()
ILuaEx_UnRef()
ILuaEx_Where()
ILuaEx_XMove()
ILuaEx_Yield()
ILuaFunction_AddRef()
ILuaFunction_Call()
ILuaFunction_QueryInterface()
ILuaFunction_Release()
ILuaLib_AddRef()
ILuaLib_Init()
ILuaLib_QueryInterface()
ILuaLib_Release()
ILua_AddRef()
ILua_CheckStack()
ILua_Concat()
ILua_CreateBuffer()
ILua_CreateTable()
ILua_Dump()
ILua_Equal()
ILua_GC()
ILua_GetFEnv()
ILua_GetField()
ILua_GetMetaTable()
ILua_GetStatus()
ILua_GetTable()
ILua_GetTop()
ILua_Insert()
ILua_IsConvertible()
ILua_IsInteger()
ILua_IsInterface()
ILua_LessThan()
ILua_Load()
ILua_NewMetaTable()
ILua_NewThread()
ILua_Next()
ILua_ObjLen()
ILua_PCall()
ILua_Pop()
ILua_PushBoolean()
ILua_PushILuaFunction()
ILua_PushInteger()
ILua_PushInterface()
ILua_PushNil()
ILua_PushNumber()
ILua_PushString()
ILua_PushThread()
ILua_PushValue()
ILua_QueryInterface()
ILua_RawEqual()
ILua_RawGet()
ILua_RawGetI()
ILua_RawSet()
ILua_RawSetI()
ILua_Ref()
ILua_Release()
ILua_Remove()
ILua_Replace()
ILua_Resume()
ILua_SetFEnv()
ILua_SetField()
ILua_SetMetaTable()
ILua_SetTable()
ILua_SetTop()
ILua_ToBoolean()
ILua_ToInteger()
ILua_ToInterface()
ILua_ToNumber()
ILua_ToString()
ILua_ToThread()
ILua_Type()
ILua_TypeName()
ILua_UnRef()
ILua_Where()
ILua_XMove()
ILua_Yield()