3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
16 vector<Msp::GL::SelectRecord> *select_buf=0;
17 vector<Msp::GL::uint> select_buf_int;
24 void select_buffer(vector<SelectRecord> &buf)
26 select_buf_int.resize(1024);
27 glSelectBuffer(select_buf_int.size(), &select_buf_int[0]);
31 void parse_select_records(const uint *buf, uint count, vector<SelectRecord> &tbuf)
38 uint n_names=buf[i++];
39 record.min_depth=buf[i++];
40 record.max_depth=buf[i++];
42 record.names.reserve(n_names);
44 record.names.push_back(buf[i++]);
46 tbuf.push_back(record);
50 void _parse_internal_select_records(uint count)
53 throw InvalidState("No select buffer specified");
54 parse_select_records(&select_buf_int[0], count, *select_buf);