MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / SetFog

Method SetFog

LuaSTGPlus/LuaWrapper.cpp:1387–1404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385 return 0;
1386 }
1387 static int SetFog(lua_State* L)LNOEXCEPT
1388 {
1389 if (lua_gettop(L) == 3)
1390 LAPP.SetFog(
1391 static_cast<float>(luaL_checknumber(L, 1)),
1392 static_cast<float>(luaL_checknumber(L, 2)),
1393 *(static_cast<fcyColor*>(luaL_checkudata(L, 3, TYPENAME_COLOR)))
1394 );
1395 else if (lua_gettop(L) == 2)
1396 LAPP.SetFog(
1397 static_cast<float>(luaL_checknumber(L, 1)),
1398 static_cast<float>(luaL_checknumber(L, 2)),
1399 0xFF000000
1400 );
1401 else
1402 LAPP.SetFog(0.0f, 0.0f, 0x00FFFFFF);
1403 return 0;
1404 }
1405 static int PushRenderTarget(lua_State* L)LNOEXCEPT
1406 {
1407 ResTexture* p = LRES.FindTexture(luaL_checkstring(L, 1));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected