Font: move Glyph to it's own header.
This commit is contained in:
parent
5c4eea4ae1
commit
2dd1187ff2
7 changed files with 31 additions and 19 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <string>
|
||||
#include <Spectre/Graphics/Image.h>
|
||||
#include <Spectre/Graphics/Font/Glyph.h>
|
||||
#include <Spectre/Graphics/Font.h>
|
||||
|
||||
namespace sp {
|
||||
|
|
@ -20,7 +21,7 @@ public :
|
|||
|
||||
virtual bool loadFromFile(const std::string& filename) = 0;
|
||||
|
||||
virtual Font::Glyph loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize = 0) = 0;
|
||||
virtual Glyph loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize = 0) = 0;
|
||||
|
||||
virtual std::string getName() = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -103,9 +103,9 @@ bool FreeTypeEngine::loadFromFile(const std::string& filename)
|
|||
return true;
|
||||
}
|
||||
|
||||
Font::Glyph FreeTypeEngine::loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize)
|
||||
Glyph FreeTypeEngine::loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize)
|
||||
{
|
||||
Font::Glyph glyph;
|
||||
Glyph glyph;
|
||||
FT_Glyph glyph_info;
|
||||
FT_Int32 flags = FT_LOAD_TARGET_NORMAL;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public:
|
|||
|
||||
virtual bool loadFromFile(const std::string& filename);
|
||||
|
||||
virtual Font::Glyph loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize = 0);
|
||||
virtual Glyph loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize = 0);
|
||||
|
||||
virtual std::string getName();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue