17 namespace visualization {
70 const char *
const geometry_shader_code,
71 const char *
const fragment_shader_code);
85 shader_name_ = shader_name;
89 std::string shader_name_ =
"ShaderWrapper";
The base geometry class.
Definition: Geometry.h:18
Defines rendering options for visualizer.
Definition: RenderOption.h:20
View controller for visualizer.
Definition: ViewControl.h:23
Definition: ShaderWrapper.h:21
bool CompileShaders(const char *const vertex_shader_code, const char *const geometry_shader_code, const char *const fragment_shader_code)
Definition: ShaderWrapper.cpp:44
GLuint geometry_shader_
Definition: ShaderWrapper.h:76
GLuint fragment_shader_
Definition: ShaderWrapper.h:77
virtual void UnbindGeometry()=0
bool compiled_
Definition: ShaderWrapper.h:81
GLuint program_
Definition: ShaderWrapper.h:78
virtual bool BindGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
void PrintShaderWarning(const std::string &message) const
Definition: ShaderWrapper.cpp:40
bool ValidateShader(GLuint shader_index)
Definition: ShaderWrapper.cpp:119
virtual ~ShaderWrapper()
Definition: ShaderWrapper.h:23
ShaderWrapper(const std::string &name)
Definition: ShaderWrapper.h:28
virtual bool RenderGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
const std::string & GetShaderName() const
Definition: ShaderWrapper.h:43
bool bound_
Definition: ShaderWrapper.h:82
void SetShaderName(const std::string &shader_name)
Definition: ShaderWrapper.h:84
GLsizei draw_arrays_size_
Definition: ShaderWrapper.h:80
ShaderWrapper & operator=(const ShaderWrapper &)=delete
GLuint vertex_shader_
Definition: ShaderWrapper.h:75
ShaderWrapper(const ShaderWrapper &)=delete
bool ValidateProgram(GLuint program_index)
Definition: ShaderWrapper.cpp:136
bool Render(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)
Definition: ShaderWrapper.cpp:18
GLenum draw_arrays_mode_
Definition: ShaderWrapper.h:79
void ReleaseProgram()
Definition: ShaderWrapper.cpp:112
void InvalidateGeometry()
Definition: ShaderWrapper.cpp:34
Definition: PinholeCameraIntrinsic.cpp:16