16 namespace visualization {
48 std::vector<
Eigen::Vector3f> &normals,
49 std::vector<
Eigen::Vector2f> &uvs) = 0;
100 std::vector<Eigen::Vector3f> &
points,
101 std::vector<Eigen::Vector3f> &normals,
102 std::vector<Eigen::Vector2f> &uvs)
final;
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
Definition: TexturePhongShader.h:88
TexturePhongShaderForTriangleMesh()
Definition: TexturePhongShader.h:90
Definition: TexturePhongShader.h:20
GLuint vertex_normal_
Definition: TexturePhongShader.h:57
void Release() final
Definition: TexturePhongShader.cpp:48
TexturePhongShader(const std::string &name)
Definition: TexturePhongShader.h:25
GLuint M_
Definition: TexturePhongShader.h:60
std::vector< GLuint > vertex_normal_buffers_
Definition: TexturePhongShader.h:76
std::vector< GLuint > diffuse_texture_buffers_
Definition: TexturePhongShader.h:77
GLuint MVP_
Definition: TexturePhongShader.h:58
bool RenderGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
Definition: TexturePhongShader.cpp:98
GLuint V_
Definition: TexturePhongShader.h:59
GLuint vertex_position_
Definition: TexturePhongShader.h:55
GLuint light_diffuse_power_
Definition: TexturePhongShader.h:63
bool Compile() final
Definition: TexturePhongShader.cpp:21
gl_util::GLMatrix4f light_color_data_
Definition: TexturePhongShader.h:81
virtual bool PrepareRendering(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view)=0
gl_util::GLVector4f light_diffuse_power_data_
Definition: TexturePhongShader.h:82
GLuint light_position_world_
Definition: TexturePhongShader.h:61
gl_util::GLVector4f light_specular_power_data_
Definition: TexturePhongShader.h:83
GLuint light_specular_power_
Definition: TexturePhongShader.h:64
std::vector< GLsizei > draw_array_sizes_
Definition: TexturePhongShader.h:72
GLuint light_color_
Definition: TexturePhongShader.h:62
std::vector< int > array_offsets_
Definition: TexturePhongShader.h:71
GLuint light_specular_shininess_
Definition: TexturePhongShader.h:65
GLuint vertex_uv_
Definition: TexturePhongShader.h:56
void SetLighting(const ViewControl &view, const RenderOption &option)
Definition: TexturePhongShader.cpp:172
GLuint light_ambient_
Definition: TexturePhongShader.h:66
std::vector< GLuint > vertex_position_buffers_
Definition: TexturePhongShader.h:74
virtual bool PrepareBinding(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view, std::vector< Eigen::Vector3f > &points, std::vector< Eigen::Vector3f > &normals, std::vector< Eigen::Vector2f > &uvs)=0
bool BindGeometry(const geometry::Geometry &geometry, const RenderOption &option, const ViewControl &view) final
Definition: TexturePhongShader.cpp:53
GLuint diffuse_texture_
Definition: TexturePhongShader.h:68
~TexturePhongShader() override
Definition: TexturePhongShader.h:22
gl_util::GLVector4f light_specular_shininess_data_
Definition: TexturePhongShader.h:84
gl_util::GLMatrix4f light_position_world_data_
Definition: TexturePhongShader.h:80
gl_util::GLVector4f light_ambient_data_
Definition: TexturePhongShader.h:85
std::vector< GLuint > vertex_uv_buffers_
Definition: TexturePhongShader.h:75
int num_materials_
Definition: TexturePhongShader.h:70
void UnbindGeometry() final
Definition: TexturePhongShader.cpp:146
Definition: NonRigidOptimizer.cpp:22
Eigen::Matrix< GLfloat, 4, 4, Eigen::ColMajor > GLMatrix4f
Definition: GLHelper.h:34
Eigen::Matrix< GLfloat, 4, 1, Eigen::ColMajor > GLVector4f
Definition: GLHelper.h:33
Definition: PinholeCameraIntrinsic.cpp:16