1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

WIP matrix & rotation lua APIs

This commit is contained in:
Lars Mueller 2025-05-10 20:38:44 +02:00
parent a87ce1bad7
commit 513532a93c
15 changed files with 1509 additions and 5 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <cmath>
#include <string_view>
extern "C" {
@ -24,6 +25,12 @@ protected:
template <typename T>
static T readParam(lua_State *L, int index);
/// Type to represent a restriction to finite floats
template<typename T>
struct Finite {
T value;
};
/**
* Read a value using a template type T from Lua state L at index
*