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

Function LuaBeginObject3D

source/bind_graphics.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45// ***********************************************************************
46
47int LuaBeginObject3D(lua_State* pLua) {
48 const char* primitiveType = luaL_checkstring(pLua, 1);
49
50 EPrimitiveType type;
51 if (strcmp(primitiveType, "Points") == 0)
52 type = EPrimitiveType::Points;
53 else if (strcmp(primitiveType, "Triangles") == 0)
54 type = EPrimitiveType::Triangles;
55 else if (strcmp(primitiveType, "Lines") == 0)
56 type = EPrimitiveType::Lines;
57 else if (strcmp(primitiveType, "LineStrip") == 0)
58 type = EPrimitiveType::LineStrip;
59 BeginObject3D(type);
60 return 0;
61}
62
63// ***********************************************************************
64

Callers

nothing calls this directly

Calls 1

BeginObject3DFunction · 0.85

Tested by

no test coverage detected