29#include FT_MULTIPLE_MASTERS_H
32#define BLF_VARIATIONS_MAX 16
34#define MAKE_DVAR_TAG(a, b, c, d) \
35 ((uint32_t(a) << 24u) | (uint32_t(b) << 16u) | (uint32_t(c) << 8u) | (uint32_t(d)))
37#define BLF_VARIATION_AXIS_WEIGHT MAKE_DVAR_TAG('w', 'g', 'h', 't')
38#define BLF_VARIATION_AXIS_SLANT MAKE_DVAR_TAG('s', 'l', 'n', 't')
39#define BLF_VARIATION_AXIS_WIDTH MAKE_DVAR_TAG('w', 'd', 't', 'h')
40#define BLF_VARIATION_AXIS_SPACING MAKE_DVAR_TAG('s', 'p', 'a', 'c')
41#define BLF_VARIATION_AXIS_OPTSIZE MAKE_DVAR_TAG('o', 'p', 's', 'z')
58#define FT_PIX_FLOOR(x) ((x) & ~63)
59#define FT_PIX_ROUND(x) FT_PIX_FLOOR((x) + 32)
60#define FT_PIX_CEIL(x) ((x) + 63)
84 return lroundf(
v * 64.0f);
89#define BLF_BATCH_DRAW_LEN_MAX 2048
92#define KERNING_CACHE_TABLE_SIZE 128
95#define KERNING_ENTRY_UNSET INT_MAX
128 return a.charcode ==
b.charcode && a.subpixel ==
b.subpixel;
336 unsigned char color[4];
ft_pix ft_pix_from_float(float v)
ft_pix ft_pix_from_int(int v)
#define KERNING_CACHE_TABLE_SIZE
int ft_pix_to_int_floor(ft_pix v)
int ft_pix_to_int_ceil(ft_pix v)
int ft_pix_to_int(ft_pix v)
ATTR_WARN_UNUSED_RESULT const BMVert * v
local_group_size(16, 16) .push_constant(Type b
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
uint64_t get_default_hash(const T &v)
unsigned __int64 uint64_t
unsigned int glyph_flags_loc
blender::gpu::Batch * batch
GlyphCacheBLF * glyph_cache
GPUVertBufRaw offset_step
unsigned int glyph_size_loc
GPUVertBufRaw glyph_flags_step
GPUVertBufRaw glyph_size_step
blender::gpu::VertBuf * verts
KerningCacheBLF * kerning_cache
blender::Vector< std::unique_ptr< GlyphCacheBLF > > cache
std::mutex glyph_cache_mutex
unsigned int reference_count
unsigned char shadow_color[4]
ColorManagedDisplay * display
unsigned char col_char[4]
short underline_thickness
short superscript_yoffset
short superscript_xoffset
short strikeout_thickness
GlyphCacheBLF * glyph_cache
blender::Map< GlyphCacheKey, std::unique_ptr< GlyphBLF > > glyphs
friend bool operator==(const GlyphCacheKey &a, const GlyphCacheKey &b)
int ascii_table[KERNING_CACHE_TABLE_SIZE][KERNING_CACHE_TABLE_SIZE]