summaryrefslogtreecommitdiff
path: root/src/render/shaders/shadersmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-08 15:40:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-08 15:40:35 +0300
commit548c2b03f8184497a5306f4b4412e3120eaef211 (patch)
treea3813d15d21c320be53650e1e195b68842f12197 /src/render/shaders/shadersmanager.h
parent0f500fab826a57f8aae8a3e2062a90ee9e80a199 (diff)
downloadmv-548c2b03f8184497a5306f4b4412e3120eaef211.tar.gz
mv-548c2b03f8184497a5306f4b4412e3120eaef211.tar.bz2
mv-548c2b03f8184497a5306f4b4412e3120eaef211.tar.xz
mv-548c2b03f8184497a5306f4b4412e3120eaef211.zip
Add shaderprogram class.
Diffstat (limited to 'src/render/shaders/shadersmanager.h')
-rw-r--r--src/render/shaders/shadersmanager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render/shaders/shadersmanager.h b/src/render/shaders/shadersmanager.h
index 0ad8556c8..ba7d26438 100644
--- a/src/render/shaders/shadersmanager.h
+++ b/src/render/shaders/shadersmanager.h
@@ -27,13 +27,18 @@
#include "localconsts.h"
-struct Shader;
+class Shader;
+class ShaderProgram;
class ShadersManager final
{
public:
Shader *createShader(const unsigned int type,
const std::string &fileName) A_WARN_UNUSED;
+
+ ShaderProgram *createProgram(const std::string &vertex,
+ const std::string &fragment)
+ A_WARN_UNUSED;
};
extern ShadersManager shaders;