Blender V5.3
draw_attributes.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include <string>
14
15#include "BLI_string_ref.hh"
16#include "BLI_sys_types.hh"
17
18#include "BLI_vector_set.hh"
19
20namespace blender {
21
22namespace bke {
23enum class AttrDomain : int8_t;
24}
25
26namespace draw {
27
31 bool orco = false;
32 bool tan_orco = false;
33 bool sculpt_overlays = false;
34 bool edit_uv = false;
35
36 friend bool operator==(const DRW_MeshCDMask &a, const DRW_MeshCDMask &b) = default;
37
38 void clear()
39 {
41 tan.clear_and_keep_capacity();
42 orco = false;
43 tan_orco = false;
44 sculpt_overlays = false;
45 edit_uv = false;
46 }
47};
48
50
51/* Return true if all requests in b are in a. */
53
55
56} // namespace draw
57} // namespace blender
void drw_attributes_add_request(VectorSet< std::string > *attrs, const StringRef name)
bool drw_attributes_overlap(const VectorSet< std::string > *a, const VectorSet< std::string > *b)
void drw_attributes_merge(VectorSet< std::string > *dst, const VectorSet< std::string > *src)
BMesh Iterators.
signed char int8_t
Definition BKE_text.h:76
VectorSet< std::string > tan
VectorSet< std::string > uv
friend bool operator==(const DRW_MeshCDMask &a, const DRW_MeshCDMask &b)=default