Blender V4.3
gpu_select_next.cc File Reference
#include <cfloat>
#include "BLI_rect.h"
#include "BLI_span.hh"
#include "GPU_select.hh"
#include "gpu_select_private.hh"

Go to the source code of this file.

Classes

struct  GPUSelectNextState
 

Functions

void gpu_select_next_begin (GPUSelectBuffer *buffer, const rcti *input, eGPUSelectMode mode)
 
int gpu_select_next_get_pick_area_center ()
 
eGPUSelectMode gpu_select_next_get_mode ()
 
void gpu_select_next_set_result (GPUSelectResult *hit_buf, uint hit_len)
 
uint gpu_select_next_end ()
 

Variables

static GPUSelectNextState g_state = {}
 

Detailed Description

Glue to make the new Select-Next engine work with the old GPU select API.

Definition in file gpu_select_next.cc.

Function Documentation

◆ gpu_select_next_begin()

void gpu_select_next_begin ( GPUSelectBuffer * buffer,
const rcti * input,
eGPUSelectMode mode )

◆ gpu_select_next_end()

uint gpu_select_next_end ( )

Definition at line 81 of file gpu_select_next.cc.

References g_state, and GPUSelectNextState::hits.

Referenced by GPU_select_end().

◆ gpu_select_next_get_mode()

eGPUSelectMode gpu_select_next_get_mode ( )

Definition at line 46 of file gpu_select_next.cc.

References g_state, and GPUSelectNextState::mode.

Referenced by blender::draw::select::SelectMap::begin_sync().

◆ gpu_select_next_get_pick_area_center()

int gpu_select_next_get_pick_area_center ( )

◆ gpu_select_next_set_result()

Variable Documentation

◆ g_state