libosmscout  1.1.1
Public Member Functions | List of all members
osmscout::TextLoader Class Reference

#include <libosmscout-map-opengl/include/osmscout/TextLoader.h>

Public Member Functions

 ~TextLoader ()
 
 TextLoader (std::string path, long defaultSize)
 
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 ( )

◆ TextLoader()

osmscout::TextLoader::TextLoader ( std::string  path,
long  defaultSize 
)

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.

◆ SetDefaultFontSize()

void osmscout::TextLoader::SetDefaultFontSize ( long  defaultFontSize)

Sets the default font size.


The documentation for this class was generated from the following file: