Blender
V5.3
source
blender
draw
engines
select
select_shader_shared.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 "
GPU_shader_shared_utils.hh
"
12
13
#ifndef GPU_SHADER
14
namespace
blender::draw::select
{
15
#endif
16
17
/* Matches eV3DSelectMode */
18
enum
[[
host_shared
]]
SelectType
:
uint32_t
{
19
SELECT_ALL
= 0u,
20
SELECT_PICK_ALL
= 1u,
21
SELECT_PICK_NEAREST
= 2u,
22
};
23
24
struct
[[
host_shared
]]
SelectInfoData
{
25
int2
cursor
;
26
enum
SelectType
mode
;
27
/* Circular radius around cursor. 0 for no radius check. */
28
int
radius
;
29
};
30
31
#ifndef GPU_SHADER
32
}
// namespace blender::draw::select
33
#endif
GPU_shader_shared_utils.hh
host_shared
#define host_shared
Definition
GPU_shader_shared_utils.hh:144
blender::draw::select
Definition
select_engine.hh:38
blender::draw::select::SelectType
SelectType
Definition
select_shader_shared.hh:18
blender::draw::select::SELECT_ALL
@ SELECT_ALL
Definition
select_shader_shared.hh:19
blender::draw::select::SELECT_PICK_NEAREST
@ SELECT_PICK_NEAREST
Definition
select_shader_shared.hh:21
blender::draw::select::SELECT_PICK_ALL
@ SELECT_PICK_ALL
Definition
select_shader_shared.hh:20
blender::uint32_t
unsigned int uint32_t
Definition
BKE_text.h:81
blender::int2
VecBase< int32_t, 2 > int2
Definition
BLI_math_vector_types.hh:781
blender::draw::select::SelectInfoData
Definition
select_shader_shared.hh:24
blender::draw::select::SelectInfoData::radius
int radius
Definition
select_shader_shared.hh:28
blender::draw::select::SelectInfoData::cursor
int2 cursor
Definition
select_shader_shared.hh:25
blender::draw::select::SelectInfoData::mode
enum SelectType mode
Definition
select_shader_shared.hh:26
Generated on
for Blender by
doxygen
1.18.0