Migrate to NanoGUI / Eigen for GUI and linear algebra.

Also introduce a GUI play/pause button.
This commit is contained in:
David Allemang
2020-10-10 22:59:51 -04:00
parent 5e3b4defd7
commit 916e9a8906
13 changed files with 640 additions and 331 deletions

28
vis/include/cgl/error.hpp Normal file
View File

@@ -0,0 +1,28 @@
#pragma once
#include <stdexcept>
#include <nanogui/opengl.h>
namespace cgl {
class GlError : public std::domain_error {
public:
explicit GlError(const std::string &arg) : domain_error(arg) {}
explicit GlError(const char *string) : domain_error(string) {}
};
class ShaderError : public GlError {
public:
explicit ShaderError(const std::string &arg) : GlError(arg) {}
explicit ShaderError(const char *string) : GlError(string) {}
};
class ProgramError : public GlError {
public:
explicit ProgramError(const std::string &arg) : GlError(arg) {}
explicit ProgramError(const char *string) : GlError(string) {}
};
}