#include <glyph.h>
Public Member Functions | |
| 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 | |
| bool | init (const Glyph &glyph, utility::ErrorState &error) |
| virtual bool | onInit (const Glyph &glyph, utility::ErrorState &error)=0 |
Protected Attributes | |
| nap::Core * | mCore |
| Handle to core instance. More... | |
Interface of a specific type of Glyph representation. This could be an image or 3D mesh constructed from a parent Glyph. Override the onInit method to create your own Glyph representation. This class does not own or manage a Glyph, it only allows you to build a representation. Glyph representations can only be created by a FontInstance.
|
virtual |
Destructor, unloads and destroys the glyph if present
| IGlyphRepresentation | ( | nap::Core & | core | ) |
Constructor
|
delete |
|
delete |
|
protected |
Called by the font when a specific Glyph representation is requested. Simply forwards the call to the derived onInit implementation.
| glyph | the parent glyph, associated with this glyph representation. |
| error | contains the error if initialization fails. |
|
protectedpure virtual |
Override this method to implement a specific Glyph representation. The handle to the parent Glyph can't be copied and is owned by the Font.
| glyph | the parent glyph, associated with this glyph representation. |
| error | contains the error if initialization fails. |
Implemented in Renderable2DMipMapGlyph, and Renderable2DGlyph.
|
delete |
|
delete |
|
protected |
Handle to core instance.