
It is only for internal use. A submesh_node will collect one or more submeshes to use in a model part.
Definition at line 317 of file model.cpp.
Public Member Functions | |
| void | draw (gsgl::flags_t render_flags=0) |
| void | load () |
| submesh () | |
| void | unload () |
| ~submesh () | |
Public Attributes | |
| vertex_buffer | line_vertices |
| material * | mat |
| vertex_buffer | point_vertices |
| vertex_buffer | triangle_normals |
| vertex_buffer | triangle_texcoords |
| vertex_buffer | triangle_vertices |
| ~submesh | ( | ) |
| void draw | ( | gsgl::flags_t | render_flags = 0 |
) |
Definition at line 376 of file model.cpp.
References vbuffer_base::bind(), material::bind(), CHECK_GL_ERRORS, submesh::line_vertices, submesh::mat, submesh::point_vertices, context::RENDER_WIREFRAME, vbuffer_mixin::size(), submesh::triangle_normals, submesh::triangle_texcoords, and submesh::triangle_vertices.
| void load | ( | ) |
Definition at line 356 of file model.cpp.
References submesh::line_vertices, vbuffer_base::load(), submesh::point_vertices, submesh::triangle_normals, submesh::triangle_texcoords, and submesh::triangle_vertices.
| void unload | ( | ) |
Definition at line 366 of file model.cpp.
References submesh::line_vertices, submesh::point_vertices, submesh::triangle_normals, submesh::triangle_texcoords, submesh::triangle_vertices, and vbuffer_base::unload().
Referenced by submesh::~submesh().
Definition at line 324 of file model.cpp.
Referenced by submesh::draw(), submesh::load(), and submesh::unload().
Definition at line 320 of file model.cpp.
Referenced by submesh::draw(), and mesh_file::load_obj_file().
Definition at line 323 of file model.cpp.
Referenced by submesh::draw(), submesh::load(), and submesh::unload().
Definition at line 327 of file model.cpp.
Referenced by submesh::draw(), submesh::load(), and submesh::unload().
Definition at line 326 of file model.cpp.
Referenced by submesh::draw(), submesh::load(), and submesh::unload().
Definition at line 325 of file model.cpp.
Referenced by submesh::draw(), submesh::load(), and submesh::unload().
1.5.5