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:
parent
2fee37f31b
commit
224066c1d3
3 changed files with 52 additions and 25 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue