#include <renderableglyph.h>
Public Member Functions | |
Renderable2DGlyph (nap::Core &core) | |
![]() | |
RenderableGlyph (nap::Core &core) | |
virtual | ~RenderableGlyph () override |
const glm::ivec2 & | getSize () const |
const glm::ivec2 & | getBearing () const |
int | getWidth () const |
int | getHeight () const |
int | getOffsetLeft () const |
int | getOffsetTop () const |
const Texture2D & | getTexture () const |
Texture2D & | getTexture () |
int | getHorizontalAdvance () const |
int | getVerticalAdvance () const |
bool | empty () const |
![]() | |
virtual | ~IGlyphRepresentation () |
IGlyphRepresentation (nap::Core &core) | |
IGlyphRepresentation (const IGlyphRepresentation &other)=delete | |
IGlyphRepresentation & | operator= (const IGlyphRepresentation &)=delete |
IGlyphRepresentation (IGlyphRepresentation &&other)=delete | |
IGlyphRepresentation & | operator= (IGlyphRepresentation &&other)=delete |
Protected Member Functions | |
virtual bool | onInit (const Glyph &glyph, utility::ErrorState &errorCode) override |
![]() | |
virtual bool | setup (const Glyph &glyph, bool generateMipmaps, utility::ErrorState &errorCode) |
![]() | |
bool | init (const Glyph &glyph, utility::ErrorState &error) |
Additional Inherited Members | |
![]() | |
nap::Core * | mCore |
Handle to core instance. More... | |
Represents a symbol (character) in a font that can be rendered. The glyph is rendered to a 2DTexture and has no mipmaps. Use this glyph representation when the text does not scale.
Renderable2DGlyph | ( | nap::Core & | core | ) |
|
overrideprotectedvirtual |
Initializes the 2DTexture after construction of this glyph. First it converts the free-type glyph into a bitmap. This bitmap is uploaded to the GPU.
Implements IGlyphRepresentation.