00001 #ifndef CONTOUR_H
00002 #define CONTOUR_H
00003
00004 #include <GL/glew.h>
00005
00006 #include <string>
00007
00008 #include "shader_primitive.h"
00009 #include "color.h"
00010
00011 using namespace std;
00012
00013 namespace glot {
00014
00022 class contour : public shader_primitive {
00023
00024 public:
00025
00039 contour(const string& f, const color& col) : shader_primitive(col), func(f) {
00040 gen_shader();
00041 };
00042
00052 void dl_gen(const screen& scr);
00053
00054 private:
00055
00067 void gen_shader();
00068
00075 string get_vert_shader();
00076
00083 string get_geom_shader();
00084
00085
00086 string func;
00087
00088 };
00089
00090 }
00091
00092 #endif