Blender  V2.93
draw_manager_text.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2016, Blender Foundation.
17  */
18 
23 #pragma once
24 
25 struct ARegion;
26 struct DRWTextStore;
27 struct Object;
28 struct UnitSettings;
29 struct View3D;
30 
32 void DRW_text_cache_destroy(struct DRWTextStore *dt);
33 
34 void DRW_text_cache_add(struct DRWTextStore *dt,
35  const float co[3],
36  const char *str,
37  const int str_len,
38  short xoffs,
39  short yoffs,
40  short flag,
41  const uchar col[4]);
42 
43 void DRW_text_cache_draw(struct DRWTextStore *dt, struct ARegion *region, struct View3D *v3d);
44 
46  struct View3D *v3d,
47  struct Object *ob,
48  const struct UnitSettings *unit);
49 
50 enum {
54  /* reference the string by pointer */
56 };
57 
58 /* draw_manager.c */
unsigned char uchar
Definition: BLI_sys_types.h:86
struct DRWTextStore * DRW_text_cache_create(void)
@ DRW_TEXT_CACHE_LOCALCLIP
@ DRW_TEXT_CACHE_GLOBALSPACE
@ DRW_TEXT_CACHE_STRING_PTR
@ DRW_TEXT_CACHE_ASCII
void DRW_text_edit_mesh_measure_stats(struct ARegion *region, struct View3D *v3d, struct Object *ob, const struct UnitSettings *unit)
void DRW_text_cache_add(struct DRWTextStore *dt, const float co[3], const char *str, const 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_cache_destroy(struct DRWTextStore *dt)
struct DRWTextStore * DRW_text_cache_ensure(void)
#define str(s)
uint col