VAPOR3 3.9.4
FontManager.h
Go to the documentation of this file.
1#pragma once
2
4#include "vapor/Font.h"
5
6namespace VAPoR {
7
8struct GLManager;
9
10class RENDER_API FontManager : public IResourceManager<std::pair<std::string, unsigned int>, Font> {
11 GLManager *_glManager;
12 FT_Library _library;
13
14public:
17
18 Font *GetFont(const std::string &name, unsigned int size);
19 int LoadResourceByKey(const std::pair<std::string, unsigned int> &key);
20};
21
22} // namespace VAPoR
Font * GetFont(const std::string &name, unsigned int size)
FontManager(GLManager *glManager)
int LoadResourceByKey(const std::pair< std::string, unsigned int > &key)
Renders charachter glyphs using FreeType2 This class does not do any transformation,...
Definition: Font.h:24
#define RENDER_API
Definition: common.h:78
Contains references to context scope OpenGL data.
Definition: GLManager.h:18