]> git.tdb.fi Git - libs/gl.git/blob - source/select.h
Add blending and clipping support
[libs/gl.git] / source / select.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_SELECT_H_
9 #define MSP_GL_SELECT_H_
10
11 #include <vector>
12 #include "types.h"
13
14 namespace Msp {
15 namespace GL {
16                 
17 struct SelectRecord
18 {
19         uint min_depth;
20         uint max_depth;
21         std::vector<uint> names;
22 };
23
24 void select_buffer(std::vector<SelectRecord> &);
25 void init_names();
26 void push_name(uint);
27 void pop_name();
28 void load_name(uint);
29
30 void parse_select_records(const uint *buf, uint, std::vector<SelectRecord> &);
31
32 void _parse_internal_select_records(uint);
33
34 } // namespace GL
35 } // namespace Msp
36
37 #endif