Skip to content

Commit

Permalink
Update BitmapFont Code Style
Browse files Browse the repository at this point in the history
updated Bitmap Font's code style as well as commented out a currently unused piece of code (m_tileSize).
  • Loading branch information
Hapaxia committed Feb 20, 2025
1 parent 0851125 commit 081f94a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/SelbaWard/BitmapFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ namespace selbaward
BitmapFont::BitmapFont()
: m_throwExceptions{ true }
, m_useExternalTexture{ false }
, m_texture()
, m_texture{}
, m_mExternalTexture{ nullptr }
, m_numberOfTilesPerRow{ 1u }
, m_tileSize({ 0, 0 })
, m_defaultTextureRect()
, m_kernings()
, m_glyphs(256) // create 256 glyphs to cover the base ascii set
//, m_tileSize({ 0u, 0u })
, m_defaultTextureRect{}
, m_kernings{}
, m_glyphs(256u) // create 256 glyphs to cover the base ascii set
{
setAllGlyphsToDefault();
}
Expand Down
2 changes: 1 addition & 1 deletion src/SelbaWard/BitmapFont.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class BitmapFont
sf::Texture m_texture;
const sf::Texture* m_mExternalTexture;
std::size_t m_numberOfTilesPerRow;
sf::Vector2u m_tileSize;
//sf::Vector2u m_tileSize;
sf::IntRect m_defaultTextureRect;
mutable std::map<std::string, int> m_kernings;
std::vector<Glyph> m_glyphs;
Expand Down

0 comments on commit 081f94a

Please sign in to comment.