gramods
Loading...
Searching...
No Matches
RasterProcessor.hh
1
2#ifndef GRAMODS_GRAPHICS_RASTERPROCESSOR
3#define GRAMODS_GRAPHICS_RASTERPROCESSOR
4
5#include <gmGraphics/config.hh>
6
7#include <string>
8#include <memory>
9
10#include <GL/glew.h>
11#include <GL/gl.h>
12
13BEGIN_NAMESPACE_GMGRAPHICS;
14
20
21public:
22
24 virtual ~RasterProcessor();
25
31 void setVertexCode(std::string code);
32
37 void setFragmentCode(std::string code);
38
42 bool init();
43
47 void run();
48
53 GLuint getProgramId();
54
55private:
56
57 struct Impl;
58 std::unique_ptr<Impl> _impl;
59
60};
61
62END_NAMESPACE_GMGRAPHICS;
63
64#endif
Encapsulated OpenGL code for executing a specified fragment shader on every raster point in the curre...
Definition RasterProcessor.hh:19
Definition RasterProcessor.cpp:9