]> git.tdb.fi Git - libs/gl.git/blob - source/simpleprogram.h
Add shaders
[libs/gl.git] / source / simpleprogram.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_SIMPLEPROGRAM_H_
9 #define MSP_GL_SIMPLEPROGRAM_H_
10
11 #include "program.h"
12 #include "shader.h"
13
14 namespace Msp {
15 namespace GL {
16
17 class SimpleProgram: public Program
18 {
19 public:
20         SimpleProgram(const std::string &vert_src, const std::string &frag_src);
21         ~SimpleProgram();
22 private:
23         Shader vert_shader;
24         Shader frag_shader;
25 };
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif