mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Implement glTF texture wrapping support
This commit is contained in:
committed by
Lars Müller
parent
2fee37f31b
commit
224066c1d3
@@ -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); }
|
||||
|
Reference in New Issue
Block a user