Blender
V5.3
source
blender
draw
intern
draw_sculpt.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_enum_flags.hh
"
12
#include "
BLI_math_vector_types.hh
"
13
#include "
BLI_vector.hh
"
14
15
namespace
blender
{
16
17
struct
GPUMaterial
;
18
struct
Object
;
19
namespace
gpu
{
20
class
Batch;
21
}
22
23
namespace
draw
{
24
25
struct
SculptBatch
{
26
gpu::Batch *
batch
;
27
int
material_slot
;
28
int
debug_index
;
29
float3
debug_color
();
30
};
31
32
enum
SculptBatchFeature
{
33
SCULPT_BATCH_DEFAULT
= 0,
34
SCULPT_BATCH_WIREFRAME
= 1 << 0,
35
SCULPT_BATCH_MASK
= 1 << 1,
36
SCULPT_BATCH_FACE_SET
= 1 << 2,
37
SCULPT_BATCH_VERTEX_COLOR
= 1 << 3,
38
SCULPT_BATCH_UV
= 1 << 4
39
};
40
ENUM_OPERATORS
(
SculptBatchFeature
);
41
43
Vector<SculptBatch>
sculpt_batches_get
(
const
Object
*ob,
SculptBatchFeature
features);
44
46
Vector<SculptBatch>
sculpt_batches_per_material_get
(
const
Object
*ob,
47
Span<const GPUMaterial *>
materials);
48
49
}
// namespace draw
50
}
// namespace blender
BLI_enum_flags.hh
BLI_math_vector_types.hh
BLI_vector.hh
blender::Span
Definition
BLI_span.hh:74
blender::Vector
Definition
BLI_vector.hh:76
blender::draw
Definition
BKE_grease_pencil.hh:34
blender::draw::ENUM_OPERATORS
ENUM_OPERATORS(DRWBatchFlag)
blender::draw::sculpt_batches_get
Vector< SculptBatch > sculpt_batches_get(const Object *ob, SculptBatchFeature features)
Definition
draw_sculpt.cc:135
blender::draw::SculptBatchFeature
SculptBatchFeature
Definition
draw_sculpt.hh:32
blender::draw::SCULPT_BATCH_DEFAULT
@ SCULPT_BATCH_DEFAULT
Definition
draw_sculpt.hh:33
blender::draw::SCULPT_BATCH_VERTEX_COLOR
@ SCULPT_BATCH_VERTEX_COLOR
Definition
draw_sculpt.hh:37
blender::draw::SCULPT_BATCH_FACE_SET
@ SCULPT_BATCH_FACE_SET
Definition
draw_sculpt.hh:36
blender::draw::SCULPT_BATCH_UV
@ SCULPT_BATCH_UV
Definition
draw_sculpt.hh:38
blender::draw::SCULPT_BATCH_WIREFRAME
@ SCULPT_BATCH_WIREFRAME
Definition
draw_sculpt.hh:34
blender::draw::SCULPT_BATCH_MASK
@ SCULPT_BATCH_MASK
Definition
draw_sculpt.hh:35
blender::draw::sculpt_batches_per_material_get
Vector< SculptBatch > sculpt_batches_per_material_get(const Object *ob, Span< const GPUMaterial * > materials)
Definition
draw_sculpt.cc:165
blender::gpu
Definition
blf_internal_types.hh:35
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::float3
VecBase< float, 3 > float3
Definition
BLI_math_vector_types.hh:799
blender::GPUMaterial
Definition
gpu_material.cc:66
blender::Object
Definition
DNA_object_types.h:466
blender::draw::SculptBatch
Definition
draw_sculpt.hh:25
blender::draw::SculptBatch::material_slot
int material_slot
Definition
draw_sculpt.hh:27
blender::draw::SculptBatch::batch
gpu::Batch * batch
Definition
draw_sculpt.hh:26
blender::draw::SculptBatch::debug_index
int debug_index
Definition
draw_sculpt.hh:28
blender::draw::SculptBatch::debug_color
float3 debug_color()
Definition
draw_sculpt.cc:34
Generated on
for Blender by
doxygen
1.18.0