3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
16 using namespace Msp::GL;
18 vector<SelectRecord> *select_buf=0;
19 vector<uint> select_buf_int;
26 void select_buffer(vector<SelectRecord> &buf)
28 select_buf_int.resize(1024);
29 glSelectBuffer(select_buf_int.size(), &select_buf_int[0]);
33 void parse_select_records(const uint *buf, uint count, vector<SelectRecord> &tbuf)
40 uint n_names=buf[i++];
41 record.min_depth=buf[i++];
42 record.max_depth=buf[i++];
44 record.names.reserve(n_names);
46 record.names.push_back(buf[i++]);
48 tbuf.push_back(record);
52 void _parse_internal_select_records(uint count)
55 throw InvalidOperation("No select buffer specified");
56 parse_select_records(&select_buf_int[0], count, *select_buf);