|
libosmscout 1.1.1
|
#include <libosmscout-map-opengl/include/osmscoutmapopengl/TextLoader.h>
Public Member Functions | |
| TextLoader (const std::string &path, long defaultSize, double dpi) | |
| ~TextLoader () | |
| bool | IsInitialized () const |
| size_t | GetWidth (int index) |
| int | GetStartWidth (int index) |
| long | GetHeight () |
| long | GetDefaultFontSize () const |
| void | SetDefaultFontSize (long defaultFontSize) |
| OpenGLTextureRef | CreateTexture () |
| std::vector< int > | AddCharactersToTextureAtlas (std::string text, double size) |
| osmscout::TextLoader::TextLoader | ( | const std::string & | path, |
| long | defaultSize, | ||
| double | dpi ) |
| osmscout::TextLoader::~TextLoader | ( | ) |
| 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.
| OpenGLTextureRef osmscout::TextLoader::CreateTexture | ( | ) |
Creates one texture from the character textures.
| long osmscout::TextLoader::GetDefaultFontSize | ( | ) | const |
Returns the default font size.
| long osmscout::TextLoader::GetHeight | ( | ) |
Returns the height of the texture atlas in pixel.
| int osmscout::TextLoader::GetStartWidth | ( | int | index | ) |
Returns the sum width of a texture at given index in pixel.
| size_t osmscout::TextLoader::GetWidth | ( | int | index | ) |
Returns width of a texture at given index in pixel.
|
inline |
| void osmscout::TextLoader::SetDefaultFontSize | ( | long | defaultFontSize | ) |
Sets the default font size.