Blender V5.3
draw_select_buffer.cc File Reference
#include <cfloat>
#include "BLI_math_matrix.hh"
#include "MEM_guardedalloc.h"
#include "BLI_array_utils_c.hh"
#include "BLI_bitmap.hh"
#include "BLI_bitmap_draw_2d.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_rect.hh"
#include "DNA_layer_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "GPU_framebuffer.hh"
#include "GPU_select.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "DRW_engine.hh"
#include "DRW_render.hh"
#include "DRW_select_buffer.hh"
#include "../engines/select/select_engine.hh"

Go to the source code of this file.

Classes

struct  blender::PolyMaskData
struct  blender::SelectReadData

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Buffer of select ID's
uint * blender::DRW_select_buffer_read (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_buf_len)
Select Bitmap from ID's

Given a buffer of select ID's, fill in a booleans (true/false) per index. BLI_bitmap is used for memory efficiency.

uint * blender::DRW_select_buffer_bitmap_from_rect (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_bitmap_len)
uint * blender::DRW_select_buffer_bitmap_from_circle (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2], int radius, uint *r_bitmap_len)
static void blender::drw_select_mask_px_cb (int x, int x_end, int y, void *user_data)
uint * blender::DRW_select_buffer_bitmap_from_poly (Depsgraph *depsgraph, ARegion *region, View3D *v3d, Span< int2 > poly, const rcti *rect, uint *r_bitmap_len)
Find Single Select ID's

Given a buffer of select ID's, find the a single select id.

uint blender::DRW_select_buffer_sample_point (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2])
static bool blender::select_buffer_test_fn (const void *__restrict value, void *__restrict userdata)
uint blender::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)
Object Utils
bool blender::DRW_select_buffer_elem_get (uint sel_id, uint &r_elem, uint &r_base_index, char &r_elem_type)
uint blender::DRW_select_buffer_context_offset_for_object_elem (Depsgraph *depsgraph, Object *object, char elem_type)
Context

Animation channel filtering, implemented in anim_filter.cc.

void blender::DRW_select_buffer_context_create (Depsgraph *depsgraph, const Span< Base * > bases, short select_mode)

Detailed Description

Utilities to read id buffer created in select_engine.

Definition in file draw_select_buffer.cc.