From 5cd9ab1a59b3c670a29aedee56afe75678a059a7 Mon Sep 17 00:00:00 2001 From: malloc Date: Fri, 24 Aug 2018 10:02:37 -0500 Subject: [PATCH] SHEMA YISROEEEEEEEEEEEEEEEEEEEEEEEEE --- src/client/shaders/_shader.hpp | 13 +++++++++++++ src/client/shaders/test.cpp | 3 +++ src/client/shaders/test.hpp | 2 ++ 3 files changed, 18 insertions(+) diff --git a/src/client/shaders/_shader.hpp b/src/client/shaders/_shader.hpp index 16bd87e..bc0cd10 100644 --- a/src/client/shaders/_shader.hpp +++ b/src/client/shaders/_shader.hpp @@ -10,6 +10,19 @@ namespace sosc { namespace shdr { +struct ShaderLoadingException : public std::exception { +public: + ShaderLoadingException(const std::string& errorInfo) { + this->errorInfo = errorInfo; + } + + const char* what() noexcept { + return this->errorInfo.c_str(); + } +private: + std::string errorInfo; +}; + struct ShaderCompilationException : public std::exception { public: ShaderCompilationException diff --git a/src/client/shaders/test.cpp b/src/client/shaders/test.cpp index 386ffa4..18cc592 100644 --- a/src/client/shaders/test.cpp +++ b/src/client/shaders/test.cpp @@ -1,2 +1,5 @@ #include "test.hpp" +void sosc::shdr::TestShader::PrepareLoad() { + +} \ No newline at end of file diff --git a/src/client/shaders/test.hpp b/src/client/shaders/test.hpp index 47ca8ea..df1deea 100644 --- a/src/client/shaders/test.hpp +++ b/src/client/shaders/test.hpp @@ -11,6 +11,8 @@ public: SCREEN_SIZE = 0, GRAPHIC_SAMPLER }; +protected: + void PrepareLoad() override; }; }}