#include <TextureFont.h>
Public Member Functions | |
Format () | |
Format & | textureWidth (int32_t textureWidth) |
Sets the width of the textures created internally for glyphs. Default 1024 . | |
int32_t | getTextureWidth () const |
Returns the width of the textures created internally for glyphs. Default 1024 . | |
Format & | textureHeight (int32_t textureHeight) |
Sets the height of the textures created internally for glyphs. Default 1024 . | |
int32_t | getTextureHeight () const |
Sets the height of the textures created internally for glyphs. Default 1024 . | |
Format & | premultiply (bool premult=true) |
Sets whether the TextureFont render premultiplied output. Default false . | |
bool | getPremultiply () const |
Returns whether the TextureFont renders premultiplied output. Default false . | |
Format & | enableMipmapping (bool enable=true) |
Enables or disables mipmapping. Default is disabled. | |
bool | hasMipmapping () const |
Returns whether the TextureFont texture has mipmapping enabled. | |
Protected Attributes | |
int32_t | mTextureWidth |
int32_t | mTextureHeight |
bool | mPremultiply |
bool | mMipmapping |
Format& cinder::gl::TextureFont::Format::textureWidth | ( | int32_t | textureWidth | ) |
Sets the width of the textures created internally for glyphs. Default 1024
.
int32_t cinder::gl::TextureFont::Format::getTextureWidth | ( | ) | const |
Returns the width of the textures created internally for glyphs. Default 1024
.
Format& cinder::gl::TextureFont::Format::textureHeight | ( | int32_t | textureHeight | ) |
Sets the height of the textures created internally for glyphs. Default 1024
.
int32_t cinder::gl::TextureFont::Format::getTextureHeight | ( | ) | const |
Sets the height of the textures created internally for glyphs. Default 1024
.
Format& cinder::gl::TextureFont::Format::premultiply | ( | bool | premult = true | ) |
Sets whether the TextureFont render premultiplied output. Default false
.
bool cinder::gl::TextureFont::Format::getPremultiply | ( | ) | const |
Returns whether the TextureFont renders premultiplied output. Default false
.
Format& cinder::gl::TextureFont::Format::enableMipmapping | ( | bool | enable = true | ) |
Enables or disables mipmapping. Default is disabled.
bool cinder::gl::TextureFont::Format::hasMipmapping | ( | ) | const |
Returns whether the TextureFont texture has mipmapping enabled.
int32_t cinder::gl::TextureFont::Format::mTextureWidth [protected] |
int32_t cinder::gl::TextureFont::Format::mTextureHeight [protected] |
bool cinder::gl::TextureFont::Format::mPremultiply [protected] |
bool cinder::gl::TextureFont::Format::mMipmapping [protected] |