mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
The Vertex struct is now recognized as POD by C++, also fixed the name to be consistent with other love structs
This commit is contained in:
@@ -47,7 +47,7 @@ int w_Geometry_getVertex(lua_State *L)
|
||||
size_t i = size_t(luaL_checkinteger(L, 2));
|
||||
|
||||
EXCEPT_GUARD(
|
||||
const vertex &v = geom->getVertex(i-1);
|
||||
const Vertex &v = geom->getVertex(i-1);
|
||||
lua_pushnumber(L, v.x);
|
||||
lua_pushnumber(L, v.y);
|
||||
lua_pushnumber(L, v.s);
|
||||
@@ -66,7 +66,7 @@ int w_Geometry_setVertex(lua_State *L)
|
||||
Geometry *geom = luax_checkgeometry(L, 1);
|
||||
size_t i = size_t(luaL_checkinteger(L, 2));
|
||||
|
||||
vertex v;
|
||||
Vertex v;
|
||||
|
||||
if (lua_istable(L, 3))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user