36 namespace visualization {
89 const char *
const geometry_shader_code,
90 const char *
const fragment_shader_code);
104 shader_name_ = shader_name;
108 std::string shader_name_ =
"ShaderWrapper";
bool ValidateShader(GLuint shader_index)
Definition: ShaderWrapper.cpp:138
ShaderWrapper(const ShaderWrapper &)=delete
GLuint geometry_shader_
Definition: ShaderWrapper.h:95
The base geometry class.
Definition: Geometry.h:37
void PrintShaderWarning(const std::string &message) const
Definition: ShaderWrapper.cpp:59
bool bound_
Definition: ShaderWrapper.h:101
GLuint vertex_shader_
Definition: ShaderWrapper.h:94
void ReleaseProgram()
Definition: ShaderWrapper.cpp:131
ShaderWrapper(const std::string &name)
Definition: ShaderWrapper.h:47
virtual ~ShaderWrapper()
Definition: ShaderWrapper.h:42
View controller for visualizer.
Definition: ViewControl.h:41
virtual bool BindGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
void InvalidateGeometry()
Definition: ShaderWrapper.cpp:53
GLuint fragment_shader_
Definition: ShaderWrapper.h:96
ShaderWrapper & operator=(const ShaderWrapper &)=delete
bool CompileShaders(const char *const vertex_shader_code, const char *const geometry_shader_code, const char *const fragment_shader_code)
Definition: ShaderWrapper.cpp:63
virtual bool RenderGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
Defines rendering options for visualizer.
Definition: RenderOption.h:39
GLenum draw_arrays_mode_
Definition: ShaderWrapper.h:98
virtual void UnbindGeometry()=0
void SetShaderName(const std::string &shader_name)
Definition: ShaderWrapper.h:103
bool compiled_
Definition: ShaderWrapper.h:100
Definition: PinholeCameraIntrinsic.cpp:35
std::string name
Definition: FilePCD.cpp:58
Definition: ShaderWrapper.h:40
const std::string & GetShaderName() const
Definition: ShaderWrapper.h:62
bool Render(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)
Definition: ShaderWrapper.cpp:37
GLsizei draw_arrays_size_
Definition: ShaderWrapper.h:99
GLuint program_
Definition: ShaderWrapper.h:97
bool ValidateProgram(GLuint program_index)
Definition: ShaderWrapper.cpp:155