function can be const

This commit is contained in:
jrkb 2023-08-04 10:01:35 +02:00
parent 7db391195d
commit e66afd23b4
2 changed files with 2 additions and 2 deletions

View file

@ -321,7 +321,7 @@ bool Atlas::getGlyphGeometryPair(const unsigned char character,
const FontVariation variation, const FontVariation variation,
GlyphGeometry & a, GlyphGeometry & a,
GlyphGeometry & b, GlyphGeometry & b,
float & mix){ float & mix) const {
float smallestDistanceDown = -1 * FLT_MAX; float smallestDistanceDown = -1 * FLT_MAX;
float smallestDistanceUp = FLT_MAX; float smallestDistanceUp = FLT_MAX;
int closestIndexDown = 0; int closestIndexDown = 0;

View file

@ -98,7 +98,7 @@ class Atlas {
const FontVariation variation, const FontVariation variation,
GlyphGeometry & a, GlyphGeometry & a,
GlyphGeometry & b, GlyphGeometry & b,
float & mix); float & mix) const;
//const GlyphGeometry & getGlyphGeometry(GlyphVariationKey key); //const GlyphGeometry & getGlyphGeometry(GlyphVariationKey key);
const FontGeometry & getFontGeometry(); const FontGeometry & getFontGeometry();