add block.is_extended, .get_size, .is_segment and .seek_origin

This commit is contained in:
MihailRis
2024-06-09 23:36:19 +03:00
parent 90ed175915
commit 1abb2cf327
2 changed files with 98 additions and 52 deletions
+7
View File
@@ -21,6 +21,13 @@ namespace lua {
return 3;
}
inline int pushivec3(lua_State* L, glm::ivec3 vec) {
lua_pushinteger(L, vec.x);
lua_pushinteger(L, vec.y);
lua_pushinteger(L, vec.z);
return 3;
}
inline int pushvec3(lua_State* L, glm::vec3 vec) {
lua_pushnumber(L, vec.x);
lua_pushnumber(L, vec.y);