add constructor for fonts module
This commit is contained in:
parent
f5fdd05336
commit
c83ffabce6
5
fonts.d
5
fonts.d
@ -47,7 +47,7 @@ struct Glyph
|
|||||||
f32 atlas_top;
|
f32 atlas_top;
|
||||||
}
|
}
|
||||||
|
|
||||||
FT_Library FT_LIB;
|
__gshared FT_Library FT_LIB;
|
||||||
alias FontFace = FT_Face;
|
alias FontFace = FT_Face;
|
||||||
|
|
||||||
struct FontAtlasBuf
|
struct FontAtlasBuf
|
||||||
@ -56,8 +56,7 @@ struct FontAtlasBuf
|
|||||||
FontAtlas atlas;
|
FontAtlas atlas;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
shared static this()
|
||||||
InitFreeType()
|
|
||||||
{
|
{
|
||||||
FT_Init_FreeType(&FT_LIB);
|
FT_Init_FreeType(&FT_LIB);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user