Blender
V5.3
source
blender
draw
intern
draw_manager_text.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2016 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#include "
BLI_sys_types.hh
"
10
11
namespace
blender
{
12
13
#pragma once
14
15
struct
ARegion
;
16
struct
DRWTextStore
;
17
struct
Object
;
18
struct
UnitSettings
;
19
struct
View3D
;
20
21
DRWTextStore
*
DRW_text_cache_create
();
22
void
DRW_text_cache_destroy
(
DRWTextStore
*dt);
23
24
/* `draw_manager.cc` */
25
DRWTextStore
*
DRW_text_cache_ensure
();
26
27
void
DRW_text_cache_add
(
DRWTextStore
*dt,
28
const
float
co[3],
29
const
char
*
str
,
30
int
str_len,
31
short
xoffs,
32
short
yoffs,
33
short
flag,
34
const
uchar
col[4],
35
const
bool
shadow =
false
,
36
const
bool
align_center =
false
);
37
38
void
DRW_text_cache_draw
(
DRWTextStore
*dt,
const
ARegion
*region,
const
View3D
*v3d);
39
40
void
DRW_text_edit_mesh_measure_stats
(
const
ARegion
*region,
41
const
View3D
*v3d,
42
const
Object
*ob,
43
const
UnitSettings
&unit,
44
DRWTextStore
*dt =
DRW_text_cache_ensure
());
45
46
enum
{
47
// DRW_UNUSED_1 = (1 << 0), /* dirty */
48
DRW_TEXT_CACHE_GLOBALSPACE
= (1 << 1),
49
DRW_TEXT_CACHE_LOCALCLIP
= (1 << 2),
50
/* reference the string by pointer */
51
DRW_TEXT_CACHE_STRING_PTR
= (1 << 3),
52
};
53
54
}
// namespace blender
BLI_sys_types.hh
str
#define str(s)
Definition
ffmpeg_codecs.cc:107
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::DRW_text_cache_ensure
DRWTextStore * DRW_text_cache_ensure()
Definition
draw_context.cc:1797
blender::DRW_TEXT_CACHE_GLOBALSPACE
@ DRW_TEXT_CACHE_GLOBALSPACE
Definition
draw_manager_text.hh:48
blender::DRW_TEXT_CACHE_STRING_PTR
@ DRW_TEXT_CACHE_STRING_PTR
Definition
draw_manager_text.hh:51
blender::DRW_TEXT_CACHE_LOCALCLIP
@ DRW_TEXT_CACHE_LOCALCLIP
Definition
draw_manager_text.hh:49
blender::DRW_text_cache_destroy
void DRW_text_cache_destroy(DRWTextStore *dt)
Definition
draw_manager_text.cc:79
blender::uchar
unsigned char uchar
Definition
BKE_text.h:58
blender::DRW_text_cache_add
void DRW_text_cache_add(DRWTextStore *dt, const float co[3], const char *str, const int str_len, short xoffs, short yoffs, short flag, const uchar col[4], const bool shadow, const bool align_center)
Definition
draw_manager_text.cc:87
blender::DRW_text_cache_draw
void DRW_text_cache_draw(DRWTextStore *dt, const ARegion *region, const View3D *v3d)
Definition
draw_manager_text.cc:177
blender::DRW_text_edit_mesh_measure_stats
void DRW_text_edit_mesh_measure_stats(const ARegion *region, const View3D *v3d, const Object *ob, const UnitSettings &unit, DRWTextStore *dt)
Definition
draw_manager_text.cc:234
blender::DRW_text_cache_create
DRWTextStore * DRW_text_cache_create()
Definition
draw_manager_text.cc:74
blender::ARegion
Definition
DNA_screen_types.h:811
blender::DRWTextStore
Definition
draw_manager_text.cc:68
blender::Object
Definition
DNA_object_types.h:466
blender::UnitSettings
Definition
DNA_scene_types.h:2511
blender::View3D
Definition
DNA_view3d_types.h:729
Generated on
for Blender by
doxygen
1.18.0