Blender  V3.3
Enumerations | Functions
draw_manager_text.h File Reference

Go to the source code of this file.

Enumerations

enum  { DRW_TEXT_CACHE_GLOBALSPACE = (1 << 1) , DRW_TEXT_CACHE_LOCALCLIP = (1 << 2) , DRW_TEXT_CACHE_STRING_PTR = (1 << 3) }
 

Functions

struct DRWTextStoreDRW_text_cache_create (void)
 
void DRW_text_cache_destroy (struct DRWTextStore *dt)
 
void DRW_text_cache_add (struct DRWTextStore *dt, const float co[3], const char *str, int str_len, short xoffs, short yoffs, short flag, const uchar col[4])
 
void DRW_text_cache_draw (struct DRWTextStore *dt, struct ARegion *region, struct View3D *v3d)
 
void DRW_text_edit_mesh_measure_stats (struct ARegion *region, struct View3D *v3d, struct Object *ob, const struct UnitSettings *unit)
 
struct DRWTextStoreDRW_text_cache_ensure (void)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DRW_TEXT_CACHE_GLOBALSPACE 
DRW_TEXT_CACHE_LOCALCLIP 
DRW_TEXT_CACHE_STRING_PTR 

Definition at line 39 of file draw_manager_text.h.

Function Documentation

◆ DRW_text_cache_add()

void DRW_text_cache_add ( struct DRWTextStore dt,
const float  co[3],
const char *  str,
int  str_len,
short  xoffs,
short  yoffs,
short  flag,
const uchar  col[4] 
)

◆ DRW_text_cache_create()

struct DRWTextStore* DRW_text_cache_create ( void  )

Definition at line 60 of file draw_manager_text.c.

References BLI_memiter_create(), DRWTextStore::cache_strings, and MEM_callocN.

Referenced by DRW_text_cache_ensure().

◆ DRW_text_cache_destroy()

void DRW_text_cache_destroy ( struct DRWTextStore dt)

◆ DRW_text_cache_draw()

void DRW_text_cache_draw ( struct DRWTextStore dt,
struct ARegion region,
struct View3D v3d 
)

◆ DRW_text_cache_ensure()

struct DRWTextStore* DRW_text_cache_ensure ( void  )

◆ DRW_text_edit_mesh_measure_stats()

void DRW_text_edit_mesh_measure_stats ( struct ARegion region,
struct View3D v3d,
struct Object ob,
const struct UnitSettings unit 
)