Blame c++/contourgl/shaders.h

7c6b57
/*
7c6b57
    ......... 2015 Ivan Mahonin
7c6b57
7c6b57
    This program is free software: you can redistribute it and/or modify
7c6b57
    it under the terms of the GNU General Public License as published by
7c6b57
    the Free Software Foundation, either version 3 of the License, or
7c6b57
    (at your option) any later version.
7c6b57
7c6b57
    This program is distributed in the hope that it will be useful,
7c6b57
    but WITHOUT ANY WARRANTY; without even the implied warranty of
7c6b57
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7c6b57
    GNU General Public License for more details.
7c6b57
7c6b57
    You should have received a copy of the GNU General Public License
7c6b57
    along with this program.  If not, see <http: licenses="" www.gnu.org="">.</http:>
7c6b57
*/
7c6b57
49e693
#ifndef _SHADERS_H_
49e693
#define _SHADERS_H_
49e693
7c6b57
#include <gl gl.h=""></gl>
7c6b57
#include <gl glext.h=""></gl>
7c6b57
#include <gl glx.h=""></gl>
7c6b57
572d9c
#include "swrender.h"
7c6b57
7c6b57
class Shaders {
49e693
public:
7c6b57
	GLuint simple_vertex_id;
7c6b57
	GLuint simpleProgramId;
7c6b57
7c6b57
	GLuint color_fragment_id;
7c6b57
	GLuint colorProgramId;
7c6b57
	GLint colorUniform;
7c6b57
7c6b57
	void check_shader(GLuint id, const char *src);
7c6b57
	void check_program(GLuint id, const char *name);
7c6b57
49e693
	Shaders();
49e693
	~Shaders();
7c6b57
49e693
	void simple();
49e693
	void color(const Color &c);
7c6b57
};
49e693
49e693
#endif