void BitmapFont::LoadSkinFontImage(const char* Location, Vec2 _CharSize, Vec2 _CellSize, Vec2 _RenderSize, char FontStart) { Font = GameState::GetInstance().GetSkinImage(Location); StartingCharacter = FontStart; CharSize = _CharSize; CellSize = _CellSize; RenderSize = _RenderSize; RegenerateCharPositions(CellSize); }
void BitmapFont::LoadFontImage(const char* Location, Vec2 _CharSize, Vec2 _CellSize, Vec2 _RenderSize, char FontStart) { Font = ImageLoader::Load(Location); StartingCharacter = FontStart; CharSize = _CharSize; CellSize = _CellSize; RenderSize = _RenderSize; RegenerateCharPositions(CellSize); }
void BitmapFont::LoadFontImage(std::filesystem::path Location, Vec2 _CharSize, Vec2 _CellSize, Vec2 _RenderSize, char FontStart) { if (!Font) Font = new Image; Font->Assign(Location, ImageData::SM_NEAREST); StartingCharacter = FontStart; CharSize = _CharSize; CellSize = _CellSize; RenderSize = _RenderSize; RegenerateCharPositions(CellSize); }