libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::TextLoader Class Reference

#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)

Constructor & Destructor Documentation

◆ TextLoader()

osmscout::TextLoader::TextLoader ( const std::string & path,
long defaultSize,
double dpi )

◆ ~TextLoader()

osmscout::TextLoader::~TextLoader ( )

Member Function Documentation

◆ 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()

OpenGLTextureRef osmscout::TextLoader::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: