#include <libosmscout-map-opengl/include/osmscout/TextLoader.h>
◆ ~TextLoader()
| osmscout::TextLoader::~TextLoader |
( |
| ) |
|
◆ TextLoader()
| osmscout::TextLoader::TextLoader |
( |
std::string |
path, |
|
|
long |
defaultSize |
|
) |
| |
◆ AddCharactersToTextureAtlas()
| std::vector<int> osmscout::TextLoader::AddCharactersToTextureAtlas |
( |
std::string |
text, |
|
|
double |
size |
|
) |
| |
Add new characters to the texture atlas and returns its indices in the atlas.
◆ CreateTexture()
Creates one texture from the character textures.
◆ GetDefaultFontSize()
| long osmscout::TextLoader::GetDefaultFontSize |
( |
| ) |
const |
Returns the default font size.
◆ GetHeight()
| long osmscout::TextLoader::GetHeight |
( |
| ) |
|
Returns the height of the texture atlas in pixel.
◆ GetStartWidth()
| int osmscout::TextLoader::GetStartWidth |
( |
int |
index | ) |
|
Returns the sum width of a texture at given index in pixel.
◆ GetWidth()
| size_t osmscout::TextLoader::GetWidth |
( |
int |
index | ) |
|
Returns width of a texture at given index in pixel.
◆ SetDefaultFontSize()
| void osmscout::TextLoader::SetDefaultFontSize |
( |
long |
defaultFontSize | ) |
|
Sets the default font size.
The documentation for this class was generated from the following file: