40617c8953
to specify the batch pipeline specified at StackOverflow See https://stackoverflow.com/questions/8923174/opengl-vao-best-practices#8923298
19 lines
392 B
C++
19 lines
392 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
// TODO: This MUST be changed to something less generic
|
|
#define EXCEPTION(message) Exception(message, typeid(*this).name())
|
|
|
|
class Exception
|
|
{
|
|
public:
|
|
Exception(const std::string& message, const std::string& class_name);
|
|
|
|
const std::string& get_message();
|
|
const std::string& get_class_name();
|
|
|
|
private:
|
|
std::string m_message;
|
|
std::string m_class_name;
|
|
}; |