MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhack_penarray_draw

Function dfhack_penarray_draw

library/LuaApi.cpp:1040–1051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038}
1039
1040static int dfhack_penarray_draw(lua_State *L)
1041{
1042 PenArray *parr = check_penarray_native(L, 1);
1043 unsigned int x = (unsigned int)luaL_checkint(L, 2);
1044 unsigned int y = (unsigned int)luaL_checkint(L, 3);
1045 unsigned int w = (unsigned int)luaL_checkint(L, 4);
1046 unsigned int h = (unsigned int)luaL_checkint(L, 5);
1047 unsigned int bufx = (unsigned int)luaL_optint(L, 6, 0);
1048 unsigned int bufy = (unsigned int)luaL_optint(L, 7, 0);
1049 parr->draw(x, y, w, h, bufx, bufy);
1050 return 0;
1051}
1052
1053static const luaL_Reg dfhack_penarray_funcs[] = {
1054 { "new", dfhack_penarray_new },

Callers

nothing calls this directly

Calls 2

check_penarray_nativeFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected