mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add static glTF support (#14557)
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: jordan4ibanez <jordan4ibanez@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
parent
8972c80d7d
commit
ac11a14509
47 changed files with 2863 additions and 28 deletions
|
@ -11,7 +11,6 @@
|
|||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cwchar>
|
||||
#include <locale>
|
||||
|
||||
/* HACK: import these string methods from MT's util/string.h */
|
||||
extern std::wstring utf8_to_wide(std::string_view input);
|
||||
|
@ -65,6 +64,7 @@ static inline u32 locale_upper(u32 x)
|
|||
template <typename T>
|
||||
class string
|
||||
{
|
||||
using stl_type = std::basic_string<T>;
|
||||
public:
|
||||
typedef T char_type;
|
||||
|
||||
|
@ -79,6 +79,10 @@ public:
|
|||
*this = other;
|
||||
}
|
||||
|
||||
string(const stl_type &str) : str(str) {}
|
||||
|
||||
string(stl_type &&str) : str(std::move(str)) {}
|
||||
|
||||
//! Constructor from other string types
|
||||
template <class B>
|
||||
string(const string<B> &other)
|
||||
|
@ -814,13 +818,6 @@ public:
|
|||
friend size_t wStringToUTF8(stringc &destination, const wchar_t *source);
|
||||
|
||||
private:
|
||||
typedef std::basic_string<T> stl_type;
|
||||
|
||||
//! Private constructor
|
||||
string(stl_type &&str) :
|
||||
str(str)
|
||||
{
|
||||
}
|
||||
|
||||
//! strlen wrapper
|
||||
template <typename U>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue