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

Function LuaPerspective

source/bind_graphics.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173// ***********************************************************************
174
175int LuaPerspective(lua_State* pLua) {
176 f32 screenWidth = (f32)luaL_checknumber(pLua, 1);
177 f32 screenHeight = (f32)luaL_checknumber(pLua, 2);
178 f32 nearPlane = (f32)luaL_checknumber(pLua, 3);
179 f32 farPlane = (f32)luaL_checknumber(pLua, 4);
180 f32 fov = (f32)luaL_checknumber(pLua, 5);
181 Perspective(screenWidth, screenHeight, nearPlane, farPlane, fov);
182 return 0;
183}
184
185// ***********************************************************************
186

Callers

nothing calls this directly

Calls 1

PerspectiveFunction · 0.85

Tested by

no test coverage detected