gramods
CubeMapRasterProcessor.hh
1 
2 #ifndef GRAMODS_GRAPHICS_CUBEMAPRASTERPROCESSOR
3 #define GRAMODS_GRAPHICS_CUBEMAPRASTERPROCESSOR
4 
5 #include <gmGraphics/config.hh>
6 #include <gmGraphics/ViewBase.hh>
7 
8 #include <GL/glew.h>
9 #include <GL/gl.h>
10 
11 #include <memory>
12 
13 BEGIN_NAMESPACE_GMGRAPHICS;
14 
23 
24 public:
25 
28 
32  void renderFullPipeline(ViewBase::ViewSettings &settings,
33  Eigen::Vector3f pos,
34  Eigen::Quaternionf rot,
35  Eye eye,
36  bool make_square = false);
37 
41  int getProgram();
42 
46  void setFragmentCode(std::string code);
47 
52  void setCubeMapResolution(int res);
53 
58  void setLinearInterpolation(bool on);
59 
64  void setPixelFormat(GLenum format);
65 
69  GLenum getPixelFormat();
70 
75  void setSpatialCubeMap(Eigen::Vector3f c, float side);
76 
77 private:
78 
79  struct Impl;
80  Impl * _impl;
81 
82 };
83 
84 END_NAMESPACE_GMGRAPHICS;
85 
86 #endif
The CubeMapRasterProcessor is a helper class for views that map the surrounding to a flat format.
Definition: CubeMapRasterProcessor.hh:22
Definition: CubeMapRasterProcessor.cpp:15
An indexed eye that can be rendered.
Definition: Eye.hh:20
Package of settings affecting the rendering.
Definition: ViewBase.hh:30