X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fselect.cpp;h=51fe0b60525c3ec829bb09136ae0a12d1da27da8;hb=1bff68e595a66f3755743a7ee0f974eb876f3520;hp=67420977323597738ebfac564c8c9514ce637799;hpb=a361efc05fcad11b2918f3cd7abdebe794b131d8;p=libs%2Fgl.git diff --git a/source/select.cpp b/source/select.cpp index 67420977..51fe0b60 100644 --- a/source/select.cpp +++ b/source/select.cpp @@ -5,18 +5,16 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#include #include "except.h" +#include "gl.h" #include "select.h" using namespace std; namespace { -using namespace Msp::GL; - -vector *select_buf=0; -vector select_buf_int; +vector *select_buf=0; +vector select_buf_int; } @@ -30,6 +28,26 @@ void select_buffer(vector &buf) select_buf=&buf; } +void init_names() +{ + glInitNames(); +} + +void push_name(uint n) +{ + glPushName(n); +} + +void pop_name() +{ + glPopName(); +} + +void load_name(uint n) +{ + glLoadName(n); +} + void parse_select_records(const uint *buf, uint count, vector &tbuf) { uint i=0;