Blender V5.3
DRW_select_buffer.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#pragma once
10
11#include "DNA_ID.h"
12
13#include "BLI_array.hh"
14#include "BLI_map.hh"
17#include "BLI_set.hh"
18#include "BLI_sys_types.hh" /* for bool and uint */
19
20namespace blender {
21
22struct ARegion;
23struct Base;
24struct Depsgraph;
25struct Object;
26struct RegionView3D;
27struct View3D;
28struct rcti;
29
41
62
63/* `draw_select_buffer.cc` */
64
65bool DRW_select_buffer_elem_get(uint sel_id, uint &r_elem, uint &r_base_index, char &r_elem_type);
66
72 Object *object,
73 char elem_type);
78 Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_buf_len);
84 Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_bitmap_len);
91uint *DRW_select_buffer_bitmap_from_circle(Depsgraph *depsgraph,
92 ARegion *region,
93 View3D *v3d,
94 const int center[2],
95 int radius,
96 uint *r_bitmap_len);
102uint *DRW_select_buffer_bitmap_from_poly(Depsgraph *depsgraph,
103 ARegion *region,
104 View3D *v3d,
105 Span<int2> poly,
106 const rcti *rect,
107 uint *r_bitmap_len);
111uint DRW_select_buffer_sample_point(Depsgraph *depsgraph,
112 ARegion *region,
113 View3D *v3d,
114 const int center[2]);
121 ARegion *region,
122 View3D *v3d,
123 const int center[2],
124 uint id_min,
125 uint id_max,
126 uint *dist);
127void DRW_select_buffer_context_create(Depsgraph *depsgraph, Span<Base *> bases, short select_mode);
128
129} // namespace blender
ID and Library types, which are fundamental for SDNA.
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
uint DRW_select_buffer_find_nearest_to_point(Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2], uint id_min, uint id_max, uint *dist)
unsigned int uint
Definition BKE_text.h:55
uint * DRW_select_buffer_bitmap_from_rect(Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_bitmap_len)
uint DRW_select_buffer_context_offset_for_object_elem(Depsgraph *depsgraph, Object *object, char elem_type)
bool DRW_select_buffer_elem_get(uint sel_id, uint &r_elem, uint &r_base_index, char &r_elem_type)
MatBase< float, 4, 4 > float4x4
uint DRW_select_buffer_sample_point(Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2])
void DRW_select_buffer_context_create(Depsgraph *depsgraph, Span< Base * > bases, short select_mode)
uint * DRW_select_buffer_bitmap_from_circle(Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2], int radius, uint *r_bitmap_len)
uint * DRW_select_buffer_read(Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_buf_len)
uint * DRW_select_buffer_bitmap_from_poly(Depsgraph *depsgraph, ARegion *region, View3D *v3d, Span< int2 > poly, const rcti *rect, uint *r_bitmap_len)
Map< Object *, ElemIndexRanges > elem_ranges
bool is_dirty(Depsgraph *depsgraph, RegionView3D *rv3d)