MCPcopy Create free account
hub / github.com/DavidColson/Polybox / LuaVertex

Function LuaVertex

source/bind_graphics.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// ***********************************************************************
30
31int LuaVertex(lua_State* pLua) {
32 f32 x = (f32)luaL_checknumber(pLua, 1);
33 f32 y = (f32)luaL_checknumber(pLua, 2);
34
35 if (lua_isnoneornil(pLua, 3)) {
36 Vertex(Vec2f(x, y));
37 return 0;
38 }
39
40 f32 z = (f32)luaL_checknumber(pLua, 3);
41 Vertex(Vec3f(x, y, z));
42 return 0;
43}
44
45// ***********************************************************************
46

Callers

nothing calls this directly

Calls 1

VertexFunction · 0.85

Tested by

no test coverage detected