00001 #ifndef SCALAR_FIELD_H
00002 #define SCALAR_FIELD_H
00003
00004 #include <GL/glew.h>
00005 #include <OpenGL/gl.h>
00006 #include <string>
00007 #include <cmath>
00008
00009 #include "shader_primitive.h"
00010 #include "function.h"
00011 #include "color.h"
00012
00013 namespace glot {
00014
00032 class scalar_field : public shader_primitive {
00033
00034 public:
00035
00039 scalar_field(const string& f) : shader_primitive(), func(f) {
00040 gen_shader();
00041 };
00042
00050 void dl_gen(const screen& s);
00051
00052 private:
00053
00059 void gen_shader();
00060
00061
00062 string func;
00063
00064 };
00065
00066 }
00067
00068 #endif