twn_rendering -> twn_draw
This commit is contained in:
		| @@ -108,7 +108,7 @@ static Color table_to_color(lua_State *L, int idx) { | ||||
| static int b_sprite(lua_State *L) { | ||||
|     luaL_checktype(L, 1, LUA_TTABLE); | ||||
|  | ||||
|     PushSpriteArgs args = { 0 }; | ||||
|     DrawSpriteArgs args = { 0 }; | ||||
|  | ||||
|     lua_getfield(L, 1, "path"); | ||||
|     const char *field_path = lua_tostring(L, -1); | ||||
| @@ -157,7 +157,7 @@ static int b_sprite(lua_State *L) { | ||||
|         args.stretch_opt_set = true; | ||||
|     } | ||||
|  | ||||
|     push_sprite(args); | ||||
|     draw_sprite_args(args); | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| @@ -181,7 +181,7 @@ static int b_rectangle(lua_State *L) { | ||||
|     if (lua_istable(L, -1)) | ||||
|         color = table_to_color(L, -1); | ||||
|  | ||||
|     push_rectangle(rect, color); | ||||
|     draw_rectangle(rect, color); | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| @@ -227,7 +227,7 @@ static int b_text(lua_State *L) { | ||||
|     if (font == NULL) | ||||
|         luaL_error(L, "bad field 'font' in 'data' (string expected, got %s)", luaL_typename(L, -1)); | ||||
|  | ||||
|     push_text(string, (Vec2) { x, y }, height_px, color, font); | ||||
|     draw_text(string, (Vec2) { x, y }, height_px, color, font); | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user