]> git.vomp.tv Git - vompclient.git/blob - glshader.h
Display channel name, duration, resume point and size on recording info screen
[vompclient.git] / glshader.h
1 /*
2     Copyright 2012 Marten Richter
3
4     This file is part of VOMP.
5
6     VOMP is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     VOMP is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with VOMP; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 */
20
21 #ifndef GL_SHADER_H
22 #define GL_SHADER_H
23
24 #include <GLES2/gl2.h>
25 #include "log.h"
26
27 class GLShader {
28 public:
29         GLShader(const char* name);
30         virtual ~GLShader();
31
32         int initShaders(const GLchar  * vertex_shad,const GLchar  *fragment_shad);
33
34         int deinitShaders();
35
36
37
38 protected:
39
40         GLuint CreateShader(const GLchar * source, GLenum type);
41
42         virtual int BindAttributes() {return 1;};
43
44         GLuint vertex_shader;
45         GLuint frag_shader;
46
47         GLuint shad_program;
48         int initted;
49         const char* objname;
50
51 };
52
53
54
55 #endif