Lines Matching refs:Mesh
34 class Mesh { class
171 BuildPyramid(Mesh &mesh) in BuildPyramid()
197 BuildIcosphere(Mesh &mesh) : mesh_(mesh), radius_(1.0f) in BuildIcosphere()
265 std::vector<Mesh::Face> faces; in tessellate()
283 faces.emplace_back(Mesh::Face{ v0, v01, v20 }); in tessellate()
284 faces.emplace_back(Mesh::Face{ v1, v12, v01 }); in tessellate()
285 faces.emplace_back(Mesh::Face{ v2, v20, v12 }); in tessellate()
286 faces.emplace_back(Mesh::Face{ v01, v12, v20 }); in tessellate()
299 const Mesh::Position &pos_a = mesh_.positions_[a]; in add_middle_point()
300 const Mesh::Position &pos_b = mesh_.positions_[b]; in add_middle_point()
301 Mesh::Position pos_mid = { in add_middle_point()
313 Mesh::Normal normal_mid = { pos_mid.x, pos_mid.y, pos_mid.z }; in add_middle_point()
327 Mesh &mesh_;
334 BuildTeapot(Mesh &mesh) in BuildTeapot()
341 Mesh::Position translate; in BuildTeapot()
346 mesh.positions_.emplace_back(Mesh::Position{ in BuildTeapot()
352 mesh.normals_.emplace_back(Mesh::Normal{ in BuildTeapot()
360 mesh.faces_.emplace_back(Mesh::Face{ in BuildTeapot()
369 Mesh::Position &translate, float &scale) in get_transform()
410 void build_meshes(std::array<Mesh, Meshes::MESH_COUNT> &meshes) in build_meshes() argument
421 vertex_input_binding_(Mesh::vertex_input_binding()), in Meshes()
422 vertex_input_attrs_(Mesh::vertex_input_attributes()), in Meshes()
424 input_assembly_state_(Mesh::input_assembly_state()), in Meshes()
425 index_type_(Mesh::index_type()) in Meshes()
433 std::array<Mesh, MESH_COUNT> meshes; in Meshes()