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

Method RenderTTF

LuaSTGPlus/LuaWrapper.cpp:1364–1381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362 return 0;
1363 }
1364 static int RenderTTF(lua_State* L)LNOEXCEPT
1365 {
1366 if (!LAPP.RenderTTF(
1367 luaL_checkstring(L, 1),
1368 luaL_checkstring(L, 2),
1369 (float)luaL_checknumber(L, 3),
1370 (float)luaL_checknumber(L, 4),
1371 (float)luaL_checknumber(L, 5),
1372 (float)luaL_checknumber(L, 6),
1373 LRES.GetGlobalImageScaleFactor() * (float)luaL_optnumber(L, 9, 1.0),
1374 luaL_checkinteger(L, 7),
1375 *static_cast<fcyColor*>(luaL_checkudata(L, 8, TYPENAME_COLOR))
1376 ))
1377 {
1378 return luaL_error(L, "can't render font '%s'.", luaL_checkstring(L, 1));
1379 }
1380 return 0;
1381 }
1382 static int RegTTF(lua_State* L)LNOEXCEPT
1383 {
1384 // 否决的方法

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected