Distributed under the LGPL
*/
-#include <GL/gl.h>
-#include "error.h"
+#include "except.h"
+#include "gl.h"
#include "select.h"
using namespace std;
namespace {
-using namespace Msp::GL;
-
-vector<SelectRecord> *select_buf=0;
-vector<uint> select_buf_int;
+vector<Msp::GL::SelectRecord> *select_buf=0;
+vector<Msp::GL::uint> select_buf_int;
}
void _parse_internal_select_records(uint count)
{
if(!select_buf)
- throw InvalidOperation("No select buffer specified");
+ throw InvalidState("No select buffer specified");
parse_select_records(&select_buf_int[0], count, *select_buf);
}