mirror of https://github.com/bjornbytes/lovr.git
Font:getVertices wrap is optional;
This commit is contained in:
parent
ed035f9e81
commit
08f0ca7434
|
@ -134,7 +134,7 @@ static int l_lovrFontGetVertices(lua_State* L) {
|
|||
uint32_t count;
|
||||
ColoredString stack;
|
||||
ColoredString* strings = luax_checkcoloredstrings(L, 2, &count, &stack);
|
||||
float wrap = luax_checkfloat(L, 3);
|
||||
float wrap = luax_optfloat(L, 3, 0.f);
|
||||
HorizontalAlign halign = luax_checkenum(L, 4, HorizontalAlign, "center");
|
||||
VerticalAlign valign = luax_checkenum(L, 5, VerticalAlign, "middle");
|
||||
size_t totalLength = 0;
|
||||
|
|
Loading…
Reference in New Issue