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:139
ShaderWrapper(const ShaderWrapper &)=delete
GLuint geometry_shader_
Definition: ShaderWrapper.h:95
Definition: Geometry.h:32
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:132
ShaderWrapper(const std::string &name)
Definition: ShaderWrapper.h:47
virtual ~ShaderWrapper()
Definition: ShaderWrapper.h:42
Definition: ViewControl.h:38
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:64
virtual bool RenderGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
Definition: RenderOption.h:36
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:34
std::string name
Definition: FilePCD.cpp:54
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:156