Fixed BaseObj and FontAtlas.
This commit is contained in:
@@ -109,22 +109,22 @@ namespace ehs
|
||||
|
||||
Type BaseObj::GetType() const
|
||||
{
|
||||
return hierarchy[hierarchySize - 1];
|
||||
return hierarchy[0];
|
||||
}
|
||||
|
||||
UInt_64 BaseObj::GetTypeIdSize() const
|
||||
{
|
||||
return hierarchy[hierarchySize - 1].GetSize();
|
||||
return hierarchy[0].GetSize();
|
||||
}
|
||||
|
||||
const Char_8* BaseObj::GetTypeId() const
|
||||
{
|
||||
return hierarchy[hierarchySize - 1].GetId();
|
||||
return hierarchy[0].GetId();
|
||||
}
|
||||
|
||||
UInt_64 BaseObj::GetTypeHashId() const
|
||||
{
|
||||
return hierarchy[hierarchySize - 1].GetHashId();
|
||||
return hierarchy[0].GetHashId();
|
||||
}
|
||||
|
||||
BaseObj* BaseObj::Clone() const
|
||||
|
@@ -141,6 +141,11 @@ namespace ehs
|
||||
return glyphScale;
|
||||
}
|
||||
|
||||
const Array<Glyph>& FontAtlas::GetGlyphs() const
|
||||
{
|
||||
return glyphs;
|
||||
}
|
||||
|
||||
Glyph FontAtlas::GetGlyph(const Char_32 code) const
|
||||
{
|
||||
for (UInt_32 i = 0; i < glyphs.Size(); ++i)
|
||||
|
Reference in New Issue
Block a user