9 using namespace Msp::GL;
11 vector<SelectRecord> *select_buf=0;
12 vector<uint> select_buf_int;
19 void select_buffer(vector<SelectRecord> &buf)
21 select_buf_int.resize(1024);
22 glSelectBuffer(select_buf_int.size(), &select_buf_int[0]);
26 void parse_select_records(const uint *buf, uint count, vector<SelectRecord> &tbuf)
33 uint n_names=buf[i++];
34 record.min_depth=buf[i++];
35 record.max_depth=buf[i++];
37 record.names.reserve(n_names);
39 record.names.push_back(buf[i++]);
41 tbuf.push_back(record);
45 void _parse_internal_select_records(uint count)
48 throw InvalidOperation("No select buffer specified");
49 parse_select_records(&select_buf_int[0], count, *select_buf);