]> git.tdb.fi Git - libs/gl.git/blobdiff - source/select.cpp
Remove rendermode and selection support due to lack of decent hardware support
[libs/gl.git] / source / select.cpp
diff --git a/source/select.cpp b/source/select.cpp
deleted file mode 100644 (file)
index 65ce6ce..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "except.h"
-#include "gl.h"
-#include "select.h"
-
-using namespace std;
-
-namespace {
-
-vector<Msp::GL::SelectRecord> *select_buf = 0;
-vector<unsigned> select_buf_int;
-
-}
-
-namespace Msp {
-namespace GL {
-
-void select_buffer(vector<SelectRecord> &buf)
-{
-       select_buf_int.resize(1024);
-       glSelectBuffer(select_buf_int.size(), &select_buf_int[0]);
-       select_buf = &buf;
-}
-
-void init_names()
-{
-       glInitNames();
-}
-
-void push_name(unsigned n)
-{
-       glPushName(n);
-}
-
-void pop_name()
-{
-       glPopName();
-}
-
-void load_name(unsigned n)
-{
-       glLoadName(n);
-}
-
-void parse_select_records(const unsigned *buf, unsigned count, vector<SelectRecord> &tbuf)
-{
-       unsigned i = 0;
-       while(count--)
-       {
-               SelectRecord record;
-
-               unsigned n_names = buf[i++];
-               record.min_depth = buf[i++];
-               record.max_depth = buf[i++];
-
-               record.names.reserve(n_names);
-               while(n_names--)
-                       record.names.push_back(buf[i++]);
-               
-               tbuf.push_back(record);
-       }
-}
-
-void _parse_internal_select_records(unsigned count)
-{
-       if(!select_buf)
-               throw InvalidState("No select buffer specified");
-       parse_select_records(&select_buf_int[0], count, *select_buf);
-}
-
-} // namespace GL
-} // namespace Msp