Fixed BaseObj and FontAtlas.

This commit is contained in:
2024-01-24 17:38:34 -08:00
parent 897d3b9120
commit b863f59d14
4 changed files with 12 additions and 5 deletions

View File

@@ -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

View File

@@ -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)