GX2-backed GlyphRenderer for GuiTextRenderer, using Texture2DShader for glyph quads and ColorShader for solid "feature" rectangles. More...
#include <WutVideoDriver.h>
Public Member Functions | |
| WutGlyphRenderer (WutVideoDriver *driver) | |
| void * | createTexture (uint16_t width, uint16_t height) override |
| Allocates an empty single-channel glyph texture. Returns an opaque handle. | |
| void | loadTextureData (void *texture, FT_Bitmap *bitmap) override |
| Uploads a rasterized FreeType glyph bitmap into a texture from createTexture(). | |
| void | destroyTexture (void *texture) override |
| Destroys a texture created by createTexture(). | |
| void | drawQuad (void *texture, int16_t screenX, int16_t screenY, uint16_t width, uint16_t height, const PixelColor &color) override |
| Draws a glyph texture as a quad tinted with color. | |
| void | drawFeature (int16_t screenX, int16_t screenY, uint16_t width, uint16_t height, const PixelColor &color) override |
| Draws a solid-color rectangle used for text decoration (underline/strike-through). | |
GX2-backed GlyphRenderer for GuiTextRenderer, using Texture2DShader for glyph quads and ColorShader for solid "feature" rectangles.
Definition at line 242 of file WutVideoDriver.h.
| WutGlyphRenderer::WutGlyphRenderer | ( | WutVideoDriver * | driver | ) |
| driver | The video driver draws are queued on |
Definition at line 796 of file WutVideoDriver.cpp.
|
overridevirtual |
Allocates an empty single-channel glyph texture. Returns an opaque handle.
Implements GlyphRenderer.
Definition at line 802 of file WutVideoDriver.cpp.
|
overridevirtual |
Destroys a texture created by createTexture().
Implements GlyphRenderer.
Definition at line 853 of file WutVideoDriver.cpp.
|
overridevirtual |
Draws a solid-color rectangle used for text decoration (underline/strike-through).
Implements GlyphRenderer.
Definition at line 886 of file WutVideoDriver.cpp.
|
overridevirtual |
Draws a glyph texture as a quad tinted with color.
Implements GlyphRenderer.
Definition at line 866 of file WutVideoDriver.cpp.
|
overridevirtual |
Uploads a rasterized FreeType glyph bitmap into a texture from createTexture().
Implements GlyphRenderer.
Definition at line 828 of file WutVideoDriver.cpp.