|
@@ -20,7 +20,7 @@ static const char* classnameVec2 = "Vec2";
|
|
|
template<>
|
|
template<>
|
|
|
I64 LuaBinder::getWrappedTypeSignature<Vec2>()
|
|
I64 LuaBinder::getWrappedTypeSignature<Vec2>()
|
|
|
{
|
|
{
|
|
|
- return 1033927924;
|
|
|
|
|
|
|
+ return 6804478823655046388;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
template<>
|
|
@@ -54,7 +54,7 @@ static inline int pwrapVec2Ctor(lua_State* l)
|
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
|
ud->m_data = inst;
|
|
ud->m_data = inst;
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927924;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046388;
|
|
|
luaL_setmetatable(l, classnameVec2);
|
|
luaL_setmetatable(l, classnameVec2);
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
@@ -80,7 +80,7 @@ static int wrapVec2Dtor(lua_State* l)
|
|
|
(void)voidp;
|
|
(void)voidp;
|
|
|
|
|
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
if(ud->m_gc)
|
|
if(ud->m_gc)
|
|
|
{
|
|
{
|
|
|
Vec2* inst = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* inst = reinterpret_cast<Vec2*>(ud->m_data);
|
|
@@ -103,7 +103,7 @@ static inline int pwrapVec2getX(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -138,7 +138,7 @@ static inline int pwrapVec2getY(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -173,7 +173,7 @@ static inline int pwrapVec2setX(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -209,7 +209,7 @@ static inline int pwrapVec2setY(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -245,7 +245,7 @@ static inline int pwrapVec2setAll(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -284,7 +284,7 @@ static inline int pwrapVec2getAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -323,7 +323,7 @@ static inline int pwrapVec2setAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -362,12 +362,12 @@ static inline int pwrapVec2copy(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -399,12 +399,12 @@ static inline int pwrapVec2__add(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -425,7 +425,7 @@ static inline int pwrapVec2__add(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927924;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046388;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -452,12 +452,12 @@ static inline int pwrapVec2__sub(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -478,7 +478,7 @@ static inline int pwrapVec2__sub(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927924;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046388;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -505,12 +505,12 @@ static inline int pwrapVec2__mul(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -531,7 +531,7 @@ static inline int pwrapVec2__mul(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927924;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046388;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -558,12 +558,12 @@ static inline int pwrapVec2__div(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -584,7 +584,7 @@ static inline int pwrapVec2__div(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927924;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046388;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -611,12 +611,12 @@ static inline int pwrapVec2__eq(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -651,7 +651,7 @@ static inline int pwrapVec2getLength(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -686,7 +686,7 @@ static inline int pwrapVec2getNormalized(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -707,7 +707,7 @@ static inline int pwrapVec2getNormalized(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
::new(ud->m_data) Vec2(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927924;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046388;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -734,7 +734,7 @@ static inline int pwrapVec2normalize(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -766,12 +766,12 @@ static inline int pwrapVec2dot(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec2, 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec2, 6804478823655046388, ud)) return -1;
|
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* self = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec2", 1033927924, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec2", 6804478823655046388, ud)) return -1;
|
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
Vec2* iarg0 = reinterpret_cast<Vec2*>(ud->m_data);
|
|
|
const Vec2& arg0(*iarg0);
|
|
const Vec2& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -831,7 +831,7 @@ static const char* classnameVec3 = "Vec3";
|
|
|
template<>
|
|
template<>
|
|
|
I64 LuaBinder::getWrappedTypeSignature<Vec3>()
|
|
I64 LuaBinder::getWrappedTypeSignature<Vec3>()
|
|
|
{
|
|
{
|
|
|
- return 1033927925;
|
|
|
|
|
|
|
+ return 6804478823655046389;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
template<>
|
|
@@ -865,7 +865,7 @@ static inline int pwrapVec3Ctor(lua_State* l)
|
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
|
ud->m_data = inst;
|
|
ud->m_data = inst;
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927925;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046389;
|
|
|
luaL_setmetatable(l, classnameVec3);
|
|
luaL_setmetatable(l, classnameVec3);
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
@@ -891,7 +891,7 @@ static int wrapVec3Dtor(lua_State* l)
|
|
|
(void)voidp;
|
|
(void)voidp;
|
|
|
|
|
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
if(ud->m_gc)
|
|
if(ud->m_gc)
|
|
|
{
|
|
{
|
|
|
Vec3* inst = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* inst = reinterpret_cast<Vec3*>(ud->m_data);
|
|
@@ -914,7 +914,7 @@ static inline int pwrapVec3getX(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -949,7 +949,7 @@ static inline int pwrapVec3getY(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -984,7 +984,7 @@ static inline int pwrapVec3getZ(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1019,7 +1019,7 @@ static inline int pwrapVec3setX(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1055,7 +1055,7 @@ static inline int pwrapVec3setY(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1091,7 +1091,7 @@ static inline int pwrapVec3setZ(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1127,7 +1127,7 @@ static inline int pwrapVec3setAll(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 4);
|
|
LuaBinder::checkArgsCount(l, 4);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1169,7 +1169,7 @@ static inline int pwrapVec3getAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1208,7 +1208,7 @@ static inline int pwrapVec3setAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1247,12 +1247,12 @@ static inline int pwrapVec3copy(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1284,12 +1284,12 @@ static inline int pwrapVec3__add(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1310,7 +1310,7 @@ static inline int pwrapVec3__add(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927925;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046389;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -1337,12 +1337,12 @@ static inline int pwrapVec3__sub(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1363,7 +1363,7 @@ static inline int pwrapVec3__sub(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927925;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046389;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -1390,12 +1390,12 @@ static inline int pwrapVec3__mul(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1416,7 +1416,7 @@ static inline int pwrapVec3__mul(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927925;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046389;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -1443,12 +1443,12 @@ static inline int pwrapVec3__div(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1469,7 +1469,7 @@ static inline int pwrapVec3__div(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927925;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046389;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -1496,12 +1496,12 @@ static inline int pwrapVec3__eq(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1536,7 +1536,7 @@ static inline int pwrapVec3getLength(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1571,7 +1571,7 @@ static inline int pwrapVec3getNormalized(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1592,7 +1592,7 @@ static inline int pwrapVec3getNormalized(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
::new(ud->m_data) Vec3(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927925;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046389;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -1619,7 +1619,7 @@ static inline int pwrapVec3normalize(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1651,12 +1651,12 @@ static inline int pwrapVec3dot(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec3, 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec3, 6804478823655046389, ud)) return -1;
|
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* self = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec3", 1033927925, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec3", 6804478823655046389, ud)) return -1;
|
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
Vec3* iarg0 = reinterpret_cast<Vec3*>(ud->m_data);
|
|
|
const Vec3& arg0(*iarg0);
|
|
const Vec3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -1718,7 +1718,7 @@ static const char* classnameVec4 = "Vec4";
|
|
|
template<>
|
|
template<>
|
|
|
I64 LuaBinder::getWrappedTypeSignature<Vec4>()
|
|
I64 LuaBinder::getWrappedTypeSignature<Vec4>()
|
|
|
{
|
|
{
|
|
|
- return 1033927922;
|
|
|
|
|
|
|
+ return 6804478823655046386;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
template<>
|
|
@@ -1752,7 +1752,7 @@ static inline int pwrapVec4Ctor(lua_State* l)
|
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
|
ud->m_data = inst;
|
|
ud->m_data = inst;
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927922;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046386;
|
|
|
luaL_setmetatable(l, classnameVec4);
|
|
luaL_setmetatable(l, classnameVec4);
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
@@ -1778,7 +1778,7 @@ static int wrapVec4Dtor(lua_State* l)
|
|
|
(void)voidp;
|
|
(void)voidp;
|
|
|
|
|
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
if(ud->m_gc)
|
|
if(ud->m_gc)
|
|
|
{
|
|
{
|
|
|
Vec4* inst = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* inst = reinterpret_cast<Vec4*>(ud->m_data);
|
|
@@ -1801,7 +1801,7 @@ static inline int pwrapVec4getX(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1836,7 +1836,7 @@ static inline int pwrapVec4getY(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1871,7 +1871,7 @@ static inline int pwrapVec4getZ(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1906,7 +1906,7 @@ static inline int pwrapVec4getW(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1941,7 +1941,7 @@ static inline int pwrapVec4setX(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -1977,7 +1977,7 @@ static inline int pwrapVec4setY(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2013,7 +2013,7 @@ static inline int pwrapVec4setZ(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2049,7 +2049,7 @@ static inline int pwrapVec4setW(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2085,7 +2085,7 @@ static inline int pwrapVec4setAll(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 5);
|
|
LuaBinder::checkArgsCount(l, 5);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2130,7 +2130,7 @@ static inline int pwrapVec4getAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2169,7 +2169,7 @@ static inline int pwrapVec4setAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2208,12 +2208,12 @@ static inline int pwrapVec4copy(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2245,12 +2245,12 @@ static inline int pwrapVec4__add(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2271,7 +2271,7 @@ static inline int pwrapVec4__add(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927922;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046386;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -2298,12 +2298,12 @@ static inline int pwrapVec4__sub(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2324,7 +2324,7 @@ static inline int pwrapVec4__sub(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927922;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046386;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -2351,12 +2351,12 @@ static inline int pwrapVec4__mul(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2377,7 +2377,7 @@ static inline int pwrapVec4__mul(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927922;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046386;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -2404,12 +2404,12 @@ static inline int pwrapVec4__div(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2430,7 +2430,7 @@ static inline int pwrapVec4__div(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927922;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046386;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -2457,12 +2457,12 @@ static inline int pwrapVec4__eq(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2497,7 +2497,7 @@ static inline int pwrapVec4getLength(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2532,7 +2532,7 @@ static inline int pwrapVec4getNormalized(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2553,7 +2553,7 @@ static inline int pwrapVec4getNormalized(lua_State* l)
|
|
|
|
|
|
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
::new(ud->m_data) Vec4(std::move(ret));
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = 1033927922;
|
|
|
|
|
|
|
+ ud->m_sig = 6804478823655046386;
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -2580,7 +2580,7 @@ static inline int pwrapVec4normalize(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2612,12 +2612,12 @@ static inline int pwrapVec4dot(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameVec4, 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameVec4, 6804478823655046386, ud)) return -1;
|
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* self = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Vec4", 1033927922, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Vec4", 6804478823655046386, ud)) return -1;
|
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
Vec4* iarg0 = reinterpret_cast<Vec4*>(ud->m_data);
|
|
|
const Vec4& arg0(*iarg0);
|
|
const Vec4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2681,7 +2681,7 @@ static const char* classnameMat3 = "Mat3";
|
|
|
template<>
|
|
template<>
|
|
|
I64 LuaBinder::getWrappedTypeSignature<Mat3>()
|
|
I64 LuaBinder::getWrappedTypeSignature<Mat3>()
|
|
|
{
|
|
{
|
|
|
- return -1957774267;
|
|
|
|
|
|
|
+ return 6306819796139686981;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
template<>
|
|
@@ -2715,7 +2715,7 @@ static inline int pwrapMat3Ctor(lua_State* l)
|
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
|
ud->m_data = inst;
|
|
ud->m_data = inst;
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = -1957774267;
|
|
|
|
|
|
|
+ ud->m_sig = 6306819796139686981;
|
|
|
luaL_setmetatable(l, classnameMat3);
|
|
luaL_setmetatable(l, classnameMat3);
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
@@ -2741,7 +2741,7 @@ static int wrapMat3Dtor(lua_State* l)
|
|
|
(void)voidp;
|
|
(void)voidp;
|
|
|
|
|
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3, -1957774267, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3, 6306819796139686981, ud)) return -1;
|
|
|
if(ud->m_gc)
|
|
if(ud->m_gc)
|
|
|
{
|
|
{
|
|
|
Mat3* inst = reinterpret_cast<Mat3*>(ud->m_data);
|
|
Mat3* inst = reinterpret_cast<Mat3*>(ud->m_data);
|
|
@@ -2764,12 +2764,12 @@ static inline int pwrapMat3copy(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3, -1957774267, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3, 6306819796139686981, ud)) return -1;
|
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Mat3", -1957774267, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Mat3", 6306819796139686981, ud)) return -1;
|
|
|
Mat3* iarg0 = reinterpret_cast<Mat3*>(ud->m_data);
|
|
Mat3* iarg0 = reinterpret_cast<Mat3*>(ud->m_data);
|
|
|
const Mat3& arg0(*iarg0);
|
|
const Mat3& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -2801,7 +2801,7 @@ static inline int pwrapMat3getAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3, -1957774267, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3, 6306819796139686981, ud)) return -1;
|
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2843,7 +2843,7 @@ static inline int pwrapMat3setAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 4);
|
|
LuaBinder::checkArgsCount(l, 4);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3, -1957774267, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3, 6306819796139686981, ud)) return -1;
|
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2885,7 +2885,7 @@ static inline int pwrapMat3setAll(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 10);
|
|
LuaBinder::checkArgsCount(l, 10);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3, -1957774267, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3, 6306819796139686981, ud)) return -1;
|
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
Mat3* self = reinterpret_cast<Mat3*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -2957,7 +2957,7 @@ static const char* classnameMat3x4 = "Mat3x4";
|
|
|
template<>
|
|
template<>
|
|
|
I64 LuaBinder::getWrappedTypeSignature<Mat3x4>()
|
|
I64 LuaBinder::getWrappedTypeSignature<Mat3x4>()
|
|
|
{
|
|
{
|
|
|
- return -222450941;
|
|
|
|
|
|
|
+ return -2654194732934255869;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
template<>
|
|
@@ -2991,7 +2991,7 @@ static inline int pwrapMat3x4Ctor(lua_State* l)
|
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
ud = reinterpret_cast<UserData*>(voidp);
|
|
|
ud->m_data = inst;
|
|
ud->m_data = inst;
|
|
|
ud->m_gc = true;
|
|
ud->m_gc = true;
|
|
|
- ud->m_sig = -222450941;
|
|
|
|
|
|
|
+ ud->m_sig = -2654194732934255869;
|
|
|
luaL_setmetatable(l, classnameMat3x4);
|
|
luaL_setmetatable(l, classnameMat3x4);
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|
|
@@ -3017,7 +3017,7 @@ static int wrapMat3x4Dtor(lua_State* l)
|
|
|
(void)voidp;
|
|
(void)voidp;
|
|
|
|
|
|
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
LuaBinder::checkArgsCount(l, 1);
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -222450941, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -2654194732934255869, ud)) return -1;
|
|
|
if(ud->m_gc)
|
|
if(ud->m_gc)
|
|
|
{
|
|
{
|
|
|
Mat3x4* inst = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
Mat3x4* inst = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
@@ -3040,12 +3040,12 @@ static inline int pwrapMat3x4copy(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
LuaBinder::checkArgsCount(l, 2);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -222450941, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -2654194732934255869, ud)) return -1;
|
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
|
// Pop arguments
|
|
// Pop arguments
|
|
|
- if(LuaBinder::checkUserData(l, 2, "Mat3x4", -222450941, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 2, "Mat3x4", -2654194732934255869, ud)) return -1;
|
|
|
Mat3x4* iarg0 = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
Mat3x4* iarg0 = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
|
const Mat3x4& arg0(*iarg0);
|
|
const Mat3x4& arg0(*iarg0);
|
|
|
|
|
|
|
@@ -3077,7 +3077,7 @@ static inline int pwrapMat3x4getAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
LuaBinder::checkArgsCount(l, 3);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -222450941, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -2654194732934255869, ud)) return -1;
|
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -3119,7 +3119,7 @@ static inline int pwrapMat3x4setAt(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 4);
|
|
LuaBinder::checkArgsCount(l, 4);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -222450941, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -2654194732934255869, ud)) return -1;
|
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|
|
@@ -3161,7 +3161,7 @@ static inline int pwrapMat3x4setAll(lua_State* l)
|
|
|
LuaBinder::checkArgsCount(l, 13);
|
|
LuaBinder::checkArgsCount(l, 13);
|
|
|
|
|
|
|
|
// Get "this" as "self"
|
|
// Get "this" as "self"
|
|
|
- if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -222450941, ud)) return -1;
|
|
|
|
|
|
|
+ if(LuaBinder::checkUserData(l, 1, classnameMat3x4, -2654194732934255869, ud)) return -1;
|
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
Mat3x4* self = reinterpret_cast<Mat3x4*>(ud->m_data);
|
|
|
ANKI_ASSERT(self != nullptr);
|
|
ANKI_ASSERT(self != nullptr);
|
|
|
|
|
|