Font: rename Driver stuff to Engine and move subdirectory
This commit is contained in:
parent
8b96338e24
commit
5c4eea4ae1
11 changed files with 57 additions and 57 deletions
35
source/Graphics/Font/Engine/FontEngine.h
Normal file
35
source/Graphics/Font/Engine/FontEngine.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
|
||||
#ifndef SPECTRE_GRAPHICS_FONT_ENGINE_FONTENGINE_H
|
||||
#define SPECTRE_GRAPHICS_FONT_ENGINE_FONTENGINE_H
|
||||
|
||||
#include <string>
|
||||
#include <Spectre/Graphics/Image.h>
|
||||
#include <Spectre/Graphics/Font.h>
|
||||
|
||||
namespace sp {
|
||||
|
||||
class FontEngine
|
||||
{
|
||||
public :
|
||||
|
||||
FontEngine();
|
||||
|
||||
void setHinting(bool value);
|
||||
|
||||
virtual bool setCharacterSize(unsigned int size) = 0;
|
||||
|
||||
virtual bool loadFromFile(const std::string& filename) = 0;
|
||||
|
||||
virtual Font::Glyph loadGlyph(unsigned int codepoint, Image& img, unsigned int outlineSize = 0) = 0;
|
||||
|
||||
virtual std::string getName() = 0;
|
||||
|
||||
protected :
|
||||
|
||||
// True if hinting is enabled. false otherwise.
|
||||
bool m_hinting;
|
||||
};
|
||||
|
||||
} // namespace sp
|
||||
|
||||
#endif /* SPECTRE_GRAPHICS_FONT_ENGINE_FONTENGINE_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue