libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GlyphRenderer Class Referenceabstract

Draws glyph textures and solid rectangles on behalf of GuiTextRenderer. More...

#include <VideoDriver.h>

Inheritance diagram for GlyphRenderer:
[legend]

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).
 

Detailed Description

Draws glyph textures and solid rectangles on behalf of GuiTextRenderer.

Implemented per platform.

Definition at line 124 of file VideoDriver.h.

Member Function Documentation

◆ createTexture()

virtual void * GlyphRenderer::createTexture ( uint16_t width,
uint16_t height )
pure virtual

Allocates an empty single-channel glyph texture. Returns an opaque handle.

Implemented in OgcGlyphRenderer, and WutGlyphRenderer.

◆ destroyTexture()

virtual void GlyphRenderer::destroyTexture ( void * texture)
pure virtual

Destroys a texture created by createTexture().

Implemented in OgcGlyphRenderer, and WutGlyphRenderer.

◆ drawFeature()

virtual void GlyphRenderer::drawFeature ( int16_t screenX,
int16_t screenY,
uint16_t width,
uint16_t height,
const PixelColor & color )
pure virtual

Draws a solid-color rectangle used for text decoration (underline/strike-through).

Implemented in OgcGlyphRenderer, and WutGlyphRenderer.

◆ drawQuad()

virtual void GlyphRenderer::drawQuad ( void * texture,
int16_t screenX,
int16_t screenY,
uint16_t width,
uint16_t height,
const PixelColor & color )
pure virtual

Draws a glyph texture as a quad tinted with color.

Implemented in OgcGlyphRenderer, and WutGlyphRenderer.

◆ loadTextureData()

virtual void GlyphRenderer::loadTextureData ( void * texture,
FT_Bitmap * bitmap )
pure virtual

Uploads a rasterized FreeType glyph bitmap into a texture from createTexture().

Implemented in OgcGlyphRenderer, and WutGlyphRenderer.


The documentation for this class was generated from the following file: