13template <
class LUA_TYPE>
33 for (
unsigned i = 1;
i <= length;
i++)
98 operator std::vector<LUA_TYPE>() {
return data; }
glm::vec< L, float, glm::qualifier::highp > vec
Definition commandLine.h:214
Interop for a single-type Lua table.
Definition LuaTable.h:15
bool readField(lua_State *lua, const char *name)
Read the table from a table field.
Definition LuaTable.h:51
LuaTable()
Construct an default table.
Definition LuaTable.h:20
size_t size() const
Definition LuaTable.h:94
LUA_TYPE & operator[](size_t i)
Definition LuaTable.h:96
bool readGlobal(lua_State *lua, const char *name)
Read the table from a global table field.
Definition LuaTable.h:76
std::vector< LUA_TYPE > data
Definition LuaTable.h:100
void read(lua_State *lua, int index)
Read the table from stack index index.
Definition LuaTable.h:28