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

Function LuaDrawSprite

source/bind_graphics.cpp:333–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331// ***********************************************************************
332
333int LuaDrawSprite(lua_State* pLua) {
334 UserData* pUserData = (UserData*)luaL_checkudata(pLua, 1, "UserData");
335 UpdateUserDataImage(pUserData);
336 Vec2f position;
337 position.x = (f32)luaL_checknumber(pLua, 2);
338 position.y = (f32)luaL_checknumber(pLua, 3);
339 DrawSprite(pUserData->img, position);
340 return 0;
341}
342
343// ***********************************************************************
344

Callers

nothing calls this directly

Calls 2

UpdateUserDataImageFunction · 0.85
DrawSpriteFunction · 0.85

Tested by

no test coverage detected