-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <stdexcept>
#include "arb_vertex_buffer_object.h"
#include "extension.h"
#include "buffer.h"
+using namespace std;
+
namespace Msp {
namespace GL {
case ELEMENT_ARRAY_BUFFER: return bound[1];
case PIXEL_PACK_BUFFER: return bound[2];
case PIXEL_UNPACK_BUFFER: return bound[3];
- default: throw InvalidParameterValue("Invalid buffer type");
+ default: throw invalid_argument("Buffer::binding");
}
}