![]() |
Prusa Slicer 2.6.0
|
Namespaces | |
| namespace | glfw |
Classes | |
| struct | gliGenericImage |
| class | MeshGL |
| struct | TgaFooter |
| struct | TgaHeader |
| class | ViewerCore |
| class | ViewerData |
Functions | |
| IGL_INLINE bool | render_to_tga (const std::string tga_file, const int width, const int height, const bool alpha) |
| alpha whether to include alpha channel | |
| IGL_INLINE bool | texture_from_tga (const std::string tga_file, GLuint &id) |
| IGL_INLINE gliGenericImage * | gliReadTGA (FILE *fp, char *name, int hflip, int vflip) |
| IGL_INLINE int | gli_verbose (int new_verbose) |
| IGL_INLINE int | gliVerbose (int newVerbose) |
| IGL_INLINE void | writeTGA (gliGenericImage *image, FILE *fp) |
| IGL_INLINE GLint | bind_vertex_attrib_array (const GLuint program_shader, const std::string &name, GLuint bufferID, const Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > &M, bool refresh) |
| IGL_INLINE void | create_index_vbo (const Eigen::MatrixXi &F, GLuint &F_vbo_id) |
| IGL_INLINE void | create_mesh_vbo (const Eigen::MatrixXd &V, const Eigen::MatrixXi &F, GLuint &V_vbo_id, GLuint &F_vbo_id) |
| IGL_INLINE void | create_mesh_vbo (const Eigen::MatrixXd &V, const Eigen::MatrixXi &F, const Eigen::MatrixXd &N, GLuint &V_vbo_id, GLuint &F_vbo_id, GLuint &N_vbo_id) |
| IGL_INLINE bool | create_shader_program (const std::string &geom_source, const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib, GLuint &id) |
| IGL_INLINE bool | create_shader_program (const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib, GLuint &id) |
| IGL_INLINE GLuint | create_shader_program (const std::string &geom_source, const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib) |
| IGL_INLINE GLuint | create_shader_program (const std::string &vert_source, const std::string &frag_source, const std::map< std::string, GLuint > &attrib) |
| template<typename T > | |
| IGL_INLINE void | create_vector_vbo (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &V, GLuint &V_vbo_id) |
| IGL_INLINE bool | destroy_shader_program (const GLuint id) |
| IGL_INLINE int | gl_type_size (const GLenum type) |
| IGL_INLINE void | init_render_to_texture (const size_t width, const size_t height, const bool depth_texture, GLuint &tex_id, GLuint &fbo_id, GLuint &d_id) |
| IGL_INLINE void | init_render_to_texture (const size_t width, const size_t height, GLuint &tex_id, GLuint &fbo_id, GLuint &dfbo_id) |
| IGL_INLINE GLuint | load_shader (const std::string &src, const GLenum type) |
| IGL_INLINE void | print_program_info_log (const GLuint obj) |
| IGL_INLINE void | print_shader_info_log (const GLuint obj) |
| IGL_INLINE GLenum | report_gl_error (const std::string id) |
| IGL_INLINE GLenum | report_gl_error () |
| IGL_INLINE std::string | uniform_type_to_string (const GLenum type) |
| template<typename DerivedV , typename DerivedF > | |
| IGL_INLINE void | vertex_array (const Eigen::PlainObjectBase< DerivedV > &V, const Eigen::PlainObjectBase< DerivedF > &F, GLuint &va_id, GLuint &ab_id, GLuint &eab_id) |
| struct igl::opengl::gliGenericImage |
| struct igl::opengl::TgaFooter |
| struct igl::opengl::TgaHeader |
| IGL_INLINE GLint igl::opengl::bind_vertex_attrib_array | ( | const GLuint | program_shader, |
| const std::string & | name, | ||
| GLuint | bufferID, | ||
| const Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > & | M, | ||
| bool | refresh | ||
| ) |
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), and GL_FALSE.
Referenced by igl::opengl::MeshGL::bind_mesh(), igl::opengl::MeshGL::bind_overlay_lines(), and igl::opengl::MeshGL::bind_overlay_points().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::create_index_vbo | ( | const Eigen::MatrixXi & | F, |
| GLuint & | F_vbo_id | ||
| ) |
References Eigen::RowMajor.
Referenced by create_mesh_vbo().
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::create_mesh_vbo | ( | const Eigen::MatrixXd & | V, |
| const Eigen::MatrixXi & | F, | ||
| const Eigen::MatrixXd & | N, | ||
| GLuint & | V_vbo_id, | ||
| GLuint & | F_vbo_id, | ||
| GLuint & | N_vbo_id | ||
| ) |
References create_mesh_vbo(), and create_vector_vbo().
Here is the call graph for this function:| IGL_INLINE void igl::opengl::create_mesh_vbo | ( | const Eigen::MatrixXd & | V, |
| const Eigen::MatrixXi & | F, | ||
| GLuint & | V_vbo_id, | ||
| GLuint & | F_vbo_id | ||
| ) |
References create_index_vbo(), and create_vector_vbo().
Referenced by create_mesh_vbo().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE GLuint igl::opengl::create_shader_program | ( | const std::string & | geom_source, |
| const std::string & | vert_source, | ||
| const std::string & | frag_source, | ||
| const std::map< std::string, GLuint > & | attrib | ||
| ) |
References create_shader_program().
Here is the call graph for this function:| IGL_INLINE bool igl::opengl::create_shader_program | ( | const std::string & | geom_source, |
| const std::string & | vert_source, | ||
| const std::string & | frag_source, | ||
| const std::map< std::string, GLuint > & | attrib, | ||
| GLuint & | id | ||
| ) |
References load_shader(), and print_program_info_log().
Referenced by create_shader_program(), create_shader_program(), and create_shader_program().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE GLuint igl::opengl::create_shader_program | ( | const std::string & | vert_source, |
| const std::string & | frag_source, | ||
| const std::map< std::string, GLuint > & | attrib | ||
| ) |
References create_shader_program().
Here is the call graph for this function:| IGL_INLINE bool igl::opengl::create_shader_program | ( | const std::string & | vert_source, |
| const std::string & | frag_source, | ||
| const std::map< std::string, GLuint > & | attrib, | ||
| GLuint & | id | ||
| ) |
| IGL_INLINE void igl::opengl::create_vector_vbo | ( | const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > & | V, |
| GLuint & | V_vbo_id | ||
| ) |
References Eigen::PlainObjectBase< Derived >::data(), Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Options, and Eigen::RowMajor.
Referenced by create_mesh_vbo(), and create_mesh_vbo().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::destroy_shader_program | ( | const GLuint | id | ) |
References igl::count(), and report_gl_error().
Here is the call graph for this function:| IGL_INLINE int igl::opengl::gl_type_size | ( | const GLenum | type | ) |
| IGL_INLINE int igl::opengl::gli_verbose | ( | int | new_verbose | ) |
| IGL_INLINE igl::opengl::gliGenericImage * igl::opengl::gliReadTGA | ( | FILE * | fp, |
| char * | name, | ||
| int | hflip, | ||
| int | vflip | ||
| ) |
References _verbose, igl::opengl::TgaHeader::bpp, igl::opengl::gliGenericImage::cmap, igl::opengl::gliGenericImage::cmapEntries, igl::opengl::gliGenericImage::cmapFormat, igl::opengl::TgaHeader::colorMapIndexHi, igl::opengl::TgaHeader::colorMapIndexLo, igl::opengl::TgaHeader::colorMapLengthHi, igl::opengl::TgaHeader::colorMapLengthLo, igl::opengl::TgaHeader::colorMapSize, igl::opengl::TgaHeader::colorMapType, igl::components(), igl::opengl::gliGenericImage::components, igl::opengl::TgaHeader::descriptor, error, igl::opengl::gliGenericImage::format, free(), igl::opengl::gliGenericImage::height, igl::opengl::TgaHeader::heightHi, igl::opengl::TgaHeader::heightLo, igl::opengl::TgaHeader::idLength, igl::opengl::TgaHeader::imageType, L, RLEstate::laststate, malloc(), igl::opengl::gliGenericImage::pixels, rle_fread(), SEEK_SET, igl::opengl::TgaFooter::signature, RLEstate::statebuf, RLEstate::statelen, std_fread(), TGA_DESC_HORIZONTAL, TGA_DESC_VERTICAL, TGA_SIGNATURE, TGA_TYPE_COLOR, TGA_TYPE_COLOR_RLE, TGA_TYPE_GRAY, TGA_TYPE_GRAY_RLE, TGA_TYPE_MAPPED, TGA_TYPE_MAPPED_RLE, igl::opengl::gliGenericImage::width, igl::opengl::TgaHeader::widthHi, and igl::opengl::TgaHeader::widthLo.
Referenced by texture_from_tga().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE int igl::opengl::gliVerbose | ( | int | newVerbose | ) |
| IGL_INLINE void igl::opengl::init_render_to_texture | ( | const size_t | width, |
| const size_t | height, | ||
| const bool | depth_texture, | ||
| GLuint & | tex_id, | ||
| GLuint & | fbo_id, | ||
| GLuint & | d_id | ||
| ) |
Referenced by init_render_to_texture().
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::init_render_to_texture | ( | const size_t | width, |
| const size_t | height, | ||
| GLuint & | tex_id, | ||
| GLuint & | fbo_id, | ||
| GLuint & | dfbo_id | ||
| ) |
References init_render_to_texture().
Here is the call graph for this function:| IGL_INLINE GLuint igl::opengl::load_shader | ( | const std::string & | src, |
| const GLenum | type | ||
| ) |
References print_shader_info_log().
Referenced by create_shader_program().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::print_program_info_log | ( | const GLuint | obj | ) |
References free(), and malloc().
Referenced by create_shader_program().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::print_shader_info_log | ( | const GLuint | obj | ) |
References free(), and malloc().
Referenced by load_shader().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE bool igl::opengl::render_to_tga | ( | const std::string | tga_file, |
| const int | width, | ||
| const int | height, | ||
| const bool | alpha | ||
| ) |
alpha whether to include alpha channel
References igl::opengl::gliGenericImage::cmap, igl::opengl::gliGenericImage::cmapEntries, igl::opengl::gliGenericImage::cmapFormat, igl::components(), igl::opengl::gliGenericImage::components, igl::opengl::gliGenericImage::format, free(), igl::opengl::gliGenericImage::height, malloc(), igl::opengl::gliGenericImage::pixels, igl::opengl::gliGenericImage::width, and writeTGA().
Here is the call graph for this function:| IGL_INLINE GLenum igl::opengl::report_gl_error | ( | ) |
References report_gl_error().
Referenced by destroy_shader_program(), and report_gl_error().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE GLenum igl::opengl::report_gl_error | ( | const std::string | id | ) |
References verbose.
| IGL_INLINE bool igl::opengl::texture_from_tga | ( | const std::string | tga_file, |
| GLuint & | id | ||
| ) |
References igl::opengl::gliGenericImage::format, gliReadTGA(), igl::opengl::gliGenericImage::height, igl::opengl::gliGenericImage::pixels, and igl::opengl::gliGenericImage::width.
Here is the call graph for this function:| IGL_INLINE std::string igl::opengl::uniform_type_to_string | ( | const GLenum | type | ) |
| IGL_INLINE void igl::opengl::vertex_array | ( | const Eigen::PlainObjectBase< DerivedV > & | V, |
| const Eigen::PlainObjectBase< DerivedF > & | F, | ||
| GLuint & | va_id, | ||
| GLuint & | ab_id, | ||
| GLuint & | eab_id | ||
| ) |
References Eigen::PlainObjectBase< Derived >::cols(), Eigen::PlainObjectBase< Derived >::data(), GL_FALSE, Eigen::PlainObjectBase< Derived >::Options, Eigen::RowMajor, and vertex_array().
Referenced by vertex_array().
Here is the call graph for this function:
Here is the caller graph for this function:| IGL_INLINE void igl::opengl::writeTGA | ( | gliGenericImage * | image, |
| FILE * | fp | ||
| ) |
References igl::opengl::gliGenericImage::cmap, igl::components(), igl::opengl::gliGenericImage::components, igl::opengl::gliGenericImage::height, igl::opengl::gliGenericImage::pixels, TGAHeaderBW, TGAHeaderColor, igl::opengl::gliGenericImage::width, and write16bit().
Referenced by render_to_tga().
Here is the call graph for this function:
Here is the caller graph for this function: