mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 05:06:12 +01:00
Add missing const qualifiers to sfFont methods
This commit is contained in:
1 parent
b5facb85d1
commit
b4163081ba
2 files changed
+10
-10
No files matched your search
@@ -93,7 +93,7 @@ void sfFont_destroy(sfFont* font)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfGlyph sfFont_getGlyph(sfFont* font, sfUint32 codePoint, unsigned int characterSize, sfBool bold, float outlineThickness)
|
||||
sfGlyph sfFont_getGlyph(const sfFont* font, sfUint32 codePoint, unsigned int characterSize, sfBool bold, float outlineThickness)
|
||||
{
|
||||
sfGlyph glyph = {0, {0, 0, 0, 0}, {0, 0, 0, 0}};
|
||||
CSFML_CHECK_RETURN(font, glyph);
|
||||
@@ -115,28 +115,28 @@ sfGlyph sfFont_getGlyph(sfFont* font, sfUint32 codePoint, unsigned int character
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
float sfFont_getKerning(sfFont* font, sfUint32 first, sfUint32 second, unsigned int characterSize)
|
||||
float sfFont_getKerning(const sfFont* font, sfUint32 first, sfUint32 second, unsigned int characterSize)
|
||||
{
|
||||
CSFML_CALL_RETURN(font, getKerning(first, second, characterSize), 0);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
float sfFont_getLineSpacing(sfFont* font, unsigned int characterSize)
|
||||
float sfFont_getLineSpacing(const sfFont* font, unsigned int characterSize)
|
||||
{
|
||||
CSFML_CALL_RETURN(font, getLineSpacing(characterSize), 0);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
float sfFont_getUnderlinePosition(sfFont* font, unsigned int characterSize)
|
||||
float sfFont_getUnderlinePosition(const sfFont* font, unsigned int characterSize)
|
||||
{
|
||||
CSFML_CALL_RETURN(font, getUnderlinePosition(characterSize), 0)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
float sfFont_getUnderlineThickness(sfFont* font, unsigned int characterSize)
|
||||
float sfFont_getUnderlineThickness(const sfFont* font, unsigned int characterSize)
|
||||
{
|
||||
CSFML_CALL_RETURN(font, getUnderlineThickness(characterSize), 0)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user