1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Implement glTF texture wrapping support

This commit is contained in:
Lars Mueller 2024-10-08 20:34:16 +02:00 committed by Lars Müller
parent 2fee37f31b
commit 224066c1d3
3 changed files with 52 additions and 25 deletions

View file

@ -8,6 +8,7 @@
#include "dimension2d.h"
#include <functional>
#include <array>
namespace irr
{
@ -34,6 +35,9 @@ public:
constexpr vector2d(const dimension2d<T> &other) :
X(other.Width), Y(other.Height) {}
explicit constexpr vector2d(const std::array<T, 2> &arr) :
X(arr[0]), Y(arr[1]) {}
// operators
vector2d<T> operator-() const { return vector2d<T>(-X, -Y); }