Draws glyph textures and solid rectangles on behalf of GuiTextRenderer. More...
#include <VideoDriver.h>
Public Member Functions | |
| virtual void * | createTexture (uint16_t width, uint16_t height)=0 |
| Allocates an empty single-channel glyph texture. Returns an opaque handle. | |
| virtual void | loadTextureData (void *texture, FT_Bitmap *bitmap)=0 |
| Uploads a rasterized FreeType glyph bitmap into a texture from createTexture(). | |
| virtual void | destroyTexture (void *texture)=0 |
| Destroys a texture created by createTexture(). | |
| virtual void | drawQuad (void *texture, int16_t screenX, int16_t screenY, uint16_t width, uint16_t height, const PixelColor &color)=0 |
| Draws a glyph texture as a quad tinted with color. | |
| virtual void | drawFeature (int16_t screenX, int16_t screenY, uint16_t width, uint16_t height, const PixelColor &color)=0 |
| Draws a solid-color rectangle used for text decoration (underline/strike-through). | |
Draws glyph textures and solid rectangles on behalf of GuiTextRenderer.
Implemented per platform.
Definition at line 124 of file VideoDriver.h.
|
pure virtual |
Allocates an empty single-channel glyph texture. Returns an opaque handle.
Implemented in OgcGlyphRenderer, and WutGlyphRenderer.
|
pure virtual |
Destroys a texture created by createTexture().
Implemented in OgcGlyphRenderer, and WutGlyphRenderer.
|
pure virtual |
Draws a solid-color rectangle used for text decoration (underline/strike-through).
Implemented in OgcGlyphRenderer, and WutGlyphRenderer.
|
pure virtual |
Draws a glyph texture as a quad tinted with color.
Implemented in OgcGlyphRenderer, and WutGlyphRenderer.
|
pure virtual |
Uploads a rasterized FreeType glyph bitmap into a texture from createTexture().
Implemented in OgcGlyphRenderer, and WutGlyphRenderer.