![]() |
Prusa Slicer 2.6.0
|
#include <src/libigl/igl/opengl/MeshGL.h>
Collaboration diagram for igl::opengl::MeshGL:Public Types | |
| enum | DirtyFlags { DIRTY_NONE = 0x0000 , DIRTY_POSITION = 0x0001 , DIRTY_UV = 0x0002 , DIRTY_NORMAL = 0x0004 , DIRTY_AMBIENT = 0x0008 , DIRTY_DIFFUSE = 0x0010 , DIRTY_SPECULAR = 0x0020 , DIRTY_TEXTURE = 0x0040 , DIRTY_FACE = 0x0080 , DIRTY_MESH = 0x00FF , DIRTY_OVERLAY_LINES = 0x0100 , DIRTY_OVERLAY_POINTS = 0x0200 , DIRTY_ALL = 0x03FF } |
| typedef unsigned int | GLuint |
| typedef Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > | RowMatrixXf |
Public Member Functions | |
| IGL_INLINE void | init () |
| IGL_INLINE void | free () |
| IGL_INLINE void | init_buffers () |
| IGL_INLINE void | bind_mesh () |
| IGL_INLINE void | draw_mesh (bool solid) |
| Draw the currently buffered mesh (either solid or wireframe) | |
| IGL_INLINE void | bind_overlay_lines () |
| IGL_INLINE void | draw_overlay_lines () |
| Draw the currently buffered line overlay. | |
| IGL_INLINE void | bind_overlay_points () |
| IGL_INLINE void | draw_overlay_points () |
| Draw the currently buffered point overlay. | |
| IGL_INLINE void | free_buffers () |
| typedef unsigned int igl::opengl::MeshGL::GLuint |
| typedef Eigen::Matrix<float,Eigen::Dynamic,Eigen::Dynamic,Eigen::RowMajor> igl::opengl::MeshGL::RowMatrixXf |
| Enumerator | |
|---|---|
| DIRTY_NONE | |
| DIRTY_POSITION | |
| DIRTY_UV | |
| DIRTY_NORMAL | |
| DIRTY_AMBIENT | |
| DIRTY_DIFFUSE | |
| DIRTY_SPECULAR | |
| DIRTY_TEXTURE | |
| DIRTY_FACE | |
| DIRTY_MESH | |
| DIRTY_OVERLAY_LINES | |
| DIRTY_OVERLAY_POINTS | |
| DIRTY_ALL | |
| IGL_INLINE void igl::opengl::MeshGL::bind_mesh | ( | ) |
References igl::opengl::bind_vertex_attrib_array(), DIRTY_AMBIENT, DIRTY_DIFFUSE, DIRTY_FACE, DIRTY_NORMAL, DIRTY_POSITION, DIRTY_SPECULAR, DIRTY_TEXTURE, and DIRTY_UV.
Here is the call graph for this function:| IGL_INLINE void igl::opengl::MeshGL::bind_overlay_lines | ( | ) |
References igl::opengl::bind_vertex_attrib_array(), and DIRTY_OVERLAY_LINES.
Here is the call graph for this function:| IGL_INLINE void igl::opengl::MeshGL::bind_overlay_points | ( | ) |
References igl::opengl::bind_vertex_attrib_array(), and DIRTY_OVERLAY_POINTS.
Here is the call graph for this function:| IGL_INLINE void igl::opengl::MeshGL::draw_mesh | ( | bool | solid | ) |
Draw the currently buffered mesh (either solid or wireframe)
References GL_TRIANGLES.
| IGL_INLINE void igl::opengl::MeshGL::draw_overlay_lines | ( | ) |
Draw the currently buffered line overlay.
| IGL_INLINE void igl::opengl::MeshGL::draw_overlay_points | ( | ) |
Draw the currently buffered point overlay.
| IGL_INLINE void igl::opengl::MeshGL::free | ( | ) |
| IGL_INLINE void igl::opengl::MeshGL::free_buffers | ( | ) |
| IGL_INLINE void igl::opengl::MeshGL::init | ( | ) |
Referenced by igl::opengl::ViewerData::updateGL().
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::MeshGL::init_buffers | ( | ) |
References dirty, DIRTY_ALL, vao_mesh, vao_overlay_lines, vao_overlay_points, vbo_F, vbo_lines_F, vbo_lines_V, vbo_lines_V_colors, vbo_points_F, vbo_points_V, vbo_points_V_colors, vbo_tex, vbo_V, vbo_V_ambient, vbo_V_diffuse, vbo_V_normals, vbo_V_specular, and vbo_V_uv.
| uint32_t igl::opengl::MeshGL::dirty |
Referenced by init_buffers(), and igl::opengl::ViewerData::updateGL().
| Eigen::Matrix<unsigned, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> igl::opengl::MeshGL::F_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| bool igl::opengl::MeshGL::is_initialized = false |
Referenced by igl::opengl::ViewerData::updateGL().
| Eigen::Matrix<unsigned, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> igl::opengl::MeshGL::lines_F_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::lines_V_colors_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::lines_V_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| Eigen::Matrix<unsigned, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> igl::opengl::MeshGL::points_F_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::points_V_colors_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::points_V_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| GLuint igl::opengl::MeshGL::shader_mesh |
| GLuint igl::opengl::MeshGL::shader_overlay_lines |
| GLuint igl::opengl::MeshGL::shader_overlay_points |
| Eigen::Matrix<char,Eigen::Dynamic,1> igl::opengl::MeshGL::tex |
Referenced by igl::opengl::ViewerData::updateGL().
| int igl::opengl::MeshGL::tex_u |
Referenced by igl::opengl::ViewerData::updateGL().
| int igl::opengl::MeshGL::tex_v |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::V_ambient_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::V_diffuse_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::V_normals_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::V_specular_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::V_uv_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| RowMatrixXf igl::opengl::MeshGL::V_vbo |
Referenced by igl::opengl::ViewerData::updateGL().
| GLuint igl::opengl::MeshGL::vao_mesh |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vao_overlay_lines |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vao_overlay_points |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_F |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_lines_F |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_lines_V |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_lines_V_colors |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_points_F |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_points_V |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_points_V_colors |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_tex |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_V |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_V_ambient |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_V_diffuse |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_V_normals |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_V_specular |
Referenced by init_buffers().
| GLuint igl::opengl::MeshGL::vbo_V_uv |
Referenced by init_buffers().