ULRE/src/SceneGraph/font/Font.cpp

28 lines
350 B
C++
Raw Normal View History

2020-06-28 22:16:07 +08:00
#include<hgl/graph/font/Font.h>
namespace hgl
{
namespace graph
{
Font::Font()
{
memset(this,0,sizeof(Font));
}
Font::Font(const char *n,int w,int h,bool b,bool i,bool aa)
{
memset(this,0,sizeof(Font));
strcpy(name,n);
width=w;
height=h;
bold=b;
italic=i;
anti=aa;
}
}//namespace graph
}//namespace hgl