KiCad PCB EDA Suite
Loading...
Searching...
No Matches
RHI_GLYPH_ATLAS_DATA Struct Reference

The bitmap font's multichannel signed distance atlas, which OPENGL_GAL draws net names and pad numbers from. More...

#include <rhi_glyph_atlas.h>

Public Attributes

uint32_t width = 0
 
uint32_t height = 0
 
std::vector< uint8_t > rgba
 width * height texels
 
std::vector< float > table
 RHI_GLYPH_TABLE_SIZE rects of x, y, width, height in texels, then one entry for the atlas size.
 

Detailed Description

The bitmap font's multichannel signed distance atlas, which OPENGL_GAL draws net names and pad numbers from.

An RHI_INSTANCE_BITMAP_GLYPH instance indexes the table so one quad draws a glyph.

Definition at line 41 of file rhi_glyph_atlas.h.

Member Data Documentation

◆ height

uint32_t RHI_GLYPH_ATLAS_DATA::height = 0

Definition at line 44 of file rhi_glyph_atlas.h.

◆ rgba

std::vector<uint8_t> RHI_GLYPH_ATLAS_DATA::rgba

width * height texels

Definition at line 45 of file rhi_glyph_atlas.h.

◆ table

std::vector<float> RHI_GLYPH_ATLAS_DATA::table

RHI_GLYPH_TABLE_SIZE rects of x, y, width, height in texels, then one entry for the atlas size.

Definition at line 50 of file rhi_glyph_atlas.h.

◆ width

uint32_t RHI_GLYPH_ATLAS_DATA::width = 0

Definition at line 43 of file rhi_glyph_atlas.h.


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