#include <libosmscout-map-opengl/include/osmscoutmapopengl/TextLoader.h>
◆ TextLoader()
| osmscout::TextLoader::TextLoader |
( |
const std::string & | path, |
|
|
long | defaultSize, |
|
|
double | dpi ) |
◆ ~TextLoader()
| osmscout::TextLoader::~TextLoader |
( |
| ) |
|
◆ 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.
◆ IsInitialized()
| bool osmscout::TextLoader::IsInitialized |
( |
| ) |
const |
|
inline |
◆ SetDefaultFontSize()
| void osmscout::TextLoader::SetDefaultFontSize |
( |
long | defaultFontSize | ) |
|
Sets the default font size.
The documentation for this class was generated from the following file:
- libosmscout-map-opengl/include/osmscoutmapopengl/TextLoader.h