Blender  V3.3
draw_manager_text.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Blender Foundation. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct ARegion;
15 struct DRWTextStore;
16 struct Object;
17 struct UnitSettings;
18 struct View3D;
19 
21 void DRW_text_cache_destroy(struct DRWTextStore *dt);
22 
23 void DRW_text_cache_add(struct DRWTextStore *dt,
24  const float co[3],
25  const char *str,
26  int str_len,
27  short xoffs,
28  short yoffs,
29  short flag,
30  const uchar col[4]);
31 
32 void DRW_text_cache_draw(struct DRWTextStore *dt, struct ARegion *region, struct View3D *v3d);
33 
35  struct View3D *v3d,
36  struct Object *ob,
37  const struct UnitSettings *unit);
38 
39 enum {
40  // DRW_UNUSED_1 = (1 << 0), /* dirty */
43  /* reference the string by pointer */
45 };
46 
47 /* draw_manager.c */
48 
50 
51 #ifdef __cplusplus
52 }
53 #endif
unsigned char uchar
Definition: BLI_sys_types.h:70
struct DRWTextStore * DRW_text_cache_create(void)
void DRW_text_edit_mesh_measure_stats(struct ARegion *region, struct View3D *v3d, struct Object *ob, const struct UnitSettings *unit)
@ DRW_TEXT_CACHE_LOCALCLIP
@ DRW_TEXT_CACHE_GLOBALSPACE
@ DRW_TEXT_CACHE_STRING_PTR
void DRW_text_cache_draw(struct DRWTextStore *dt, struct ARegion *region, struct View3D *v3d)
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])
struct DRWTextStore * DRW_text_cache_ensure(void)
#define str(s)
uint col