2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2014 Blender Foundation.
19 * All rights reserved.
21 * Contributor(s): Antony Riakiotakis.
23 * ***** END GPL LICENSE BLOCK *****
26 /** \file blender/gpu/intern/gpu_select_private.h
29 * Selection implementations.
32 #ifndef __GPU_SELECT_PRIVATE_H__
33 #define __GPU_SELECT_PRIVATE_H__
36 void gpu_select_pick_begin(unsigned int (*buffer)[4], unsigned int bufsize, const rcti *input, char mode);
37 bool gpu_select_pick_load_id(unsigned int id);
38 void gpu_select_pick_finalize(void);
39 unsigned int gpu_select_pick_end(void);
41 void gpu_select_pick_cache_begin(void);
42 void gpu_select_pick_cache_end(void);
43 bool gpu_select_pick_is_cached(void);
44 void gpu_select_pick_cache_load_id(void);
46 /* gpu_select_sample_query */
47 void gpu_select_query_begin(unsigned int (*buffer)[4], unsigned int bufsize, const rcti *input, char mode, int oldhits);
48 bool gpu_select_query_load_id(unsigned int id);
49 unsigned int gpu_select_query_end(void);
52 #define SELECT_ID_NONE ((unsigned int)0xffffffff)
54 #endif /* __GPU_SELECT_PRIVATE_H__ */