From a8e31120a793f09ab56cc2847d76944ba698ba95 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 9 May 2019 00:49:58 +0100 Subject: Basics of OpenGL viewer. --- src/lib/exceptions.cc | 6 ++++++ src/lib/exceptions.h | 7 +++++++ 2 files changed, 13 insertions(+) (limited to 'src/lib') diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index 481d2e89d..c86f98da2 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -100,3 +100,9 @@ KDMError::KDMError (string s, string d) { } + +GLError::GLError (char const * last, int e) + : runtime_error (String::compose("%1 failed %2", last, e)) +{ + +} diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index fe87ababc..f6b3bd902 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -285,4 +285,11 @@ public: KDMAsContentError (); }; +class GLError : public std::runtime_error +{ +public: + GLError (char const * last, int e); +}; + + #endif -- cgit v1.2.3