Blender V5.0
GlyphCacheBLF Struct Reference

#include <blf_internal_types.hh>

Public Member Functions

Glyph Cache
 ~GlyphCacheBLF ()

Public Attributes

float size
int char_weight
float char_slant
float char_width
float char_spacing
bool bold
bool italic
int fixed_width
blender::Map< GlyphCacheKey, std::unique_ptr< GlyphBLF > > glyphs
blender::gpu::Texturetexture
char * bitmap_result
int bitmap_len
int bitmap_len_landed
int bitmap_len_alloc

Detailed Description

Definition at line 150 of file blf_internal_types.hh.

Constructor & Destructor Documentation

◆ ~GlyphCacheBLF()

GlyphCacheBLF::~GlyphCacheBLF ( )

Definition at line 151 of file blf_glyph.cc.

References bitmap_result, glyphs, GPU_texture_free(), MEM_freeN(), and texture.

Member Data Documentation

◆ bitmap_len

int GlyphCacheBLF::bitmap_len

Definition at line 171 of file blf_internal_types.hh.

Referenced by blf_batch_cache_texture_load(), and blf_glyph_draw().

◆ bitmap_len_alloc

int GlyphCacheBLF::bitmap_len_alloc

Definition at line 173 of file blf_internal_types.hh.

Referenced by blf_glyph_draw().

◆ bitmap_len_landed

int GlyphCacheBLF::bitmap_len_landed

Definition at line 172 of file blf_internal_types.hh.

Referenced by blf_batch_cache_texture_load(), and blf_glyph_draw().

◆ bitmap_result

char* GlyphCacheBLF::bitmap_result

◆ bold

bool GlyphCacheBLF::bold

Definition at line 159 of file blf_internal_types.hh.

◆ char_slant

float GlyphCacheBLF::char_slant

Definition at line 155 of file blf_internal_types.hh.

◆ char_spacing

float GlyphCacheBLF::char_spacing

Definition at line 157 of file blf_internal_types.hh.

◆ char_weight

int GlyphCacheBLF::char_weight

Definition at line 154 of file blf_internal_types.hh.

◆ char_width

float GlyphCacheBLF::char_width

Definition at line 156 of file blf_internal_types.hh.

◆ fixed_width

int GlyphCacheBLF::fixed_width

Column width when printing monospaced.

Definition at line 163 of file blf_internal_types.hh.

Referenced by blf_font_fixed_width(), and blf_glyph_ensure().

◆ glyphs

◆ italic

bool GlyphCacheBLF::italic

Definition at line 160 of file blf_internal_types.hh.

◆ size

float GlyphCacheBLF::size

Font size.

Definition at line 152 of file blf_internal_types.hh.

Referenced by blf_glyph_cache_add_svg().

◆ texture

blender::gpu::Texture* GlyphCacheBLF::texture

Texture array, to draw the glyphs.

Definition at line 169 of file blf_internal_types.hh.

Referenced by blf_batch_cache_texture_load(), blf_glyph_draw(), and ~GlyphCacheBLF().


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