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:
parent
a87ce1bad7
commit
513532a93c
15 changed files with 1509 additions and 5 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue