Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_select_private.h
- This file was copied from source/blender/gpu/GPU_select.h.
| Show All 17 Lines | |||||
| * The Original Code is Copyright (C) 2014 Blender Foundation. | * The Original Code is Copyright (C) 2014 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| * | * | ||||
| * Contributor(s): Antony Riakiotakis. | * Contributor(s): Antony Riakiotakis. | ||||
| * | * | ||||
| * ***** END GPL LICENSE BLOCK ***** | * ***** END GPL LICENSE BLOCK ***** | ||||
| */ | */ | ||||
| /** \file GPU_select.h | /** \file blender/gpu/intern/gpu_select_private.h | ||||
| * \ingroup gpu | * \ingroup gpu | ||||
| * | |||||
| * Selection implementations. | |||||
| */ | */ | ||||
| #ifndef __GPU_SELECT_H__ | /* gpu_select_pick */ | ||||
| #define __GPU_SELECT_H__ | void gpu_select_pick_begin(unsigned int (*buffer)[4], unsigned int bufsize, const rcti *input, char mode); | ||||
| bool gpu_select_pick_load_id(unsigned int id); | |||||
| #include "BLI_sys_types.h" | unsigned int gpu_select_pick_end(void); | ||||
| struct rcti; | void gpu_select_pick_cache_begin(void); | ||||
| void gpu_select_pick_cache_end(void); | |||||
| bool gpu_select_pick_is_cached(void); | |||||
| void gpu_select_pick_cache_load_id(void); | |||||
| /* gpu_select_sample_query */ | |||||
| void gpu_select_query_begin(unsigned int (*buffer)[4], unsigned int bufsize, const rcti *input, char mode, int oldhits); | |||||
| bool gpu_select_query_load_id(unsigned int id); | |||||
| unsigned int gpu_select_query_end(void); | |||||
| /* flags for mode of operation */ | |||||
| enum { | |||||
| GPU_SELECT_ALL = 1, | |||||
| GPU_SELECT_NEAREST_FIRST_PASS = 2, | |||||
| GPU_SELECT_NEAREST_SECOND_PASS = 3, | |||||
| }; | |||||
| void GPU_select_begin(unsigned int *buffer, unsigned int bufsize, const struct rcti *input, char mode, int oldhits); | |||||
| bool GPU_select_load_id(unsigned int id); | |||||
| unsigned int GPU_select_end(void); | |||||
| bool GPU_select_query_check_active(void); | |||||
| #endif | #define SELECT_ID_NONE ((unsigned int)0xffffffff) | ||||