MDLParser
Simple and modern library for parsing the Source engine model formats
Loading...
Searching...
No Matches
accessors.hpp
1#pragma once
2
3#include "mdl.hpp"
4#include "vtx.hpp"
5#include "vvd.hpp"
6#include <functional>
7
11namespace MdlParser::Accessors {
19 const Mdl& mdl, const Vtx& vtx, const std::function<void(const Mdl::BodyPart&, const Vtx::BodyPart&)>& iteratee
20 );
21
28 void iterateModels(
29 const Mdl::BodyPart& mdlBodyPart,
30 const Vtx::BodyPart& vtxBodyPart,
31 const std::function<void(const Mdl::Model&, const Vtx::Model&)>& iteratee
32 );
33
40 void iterateMeshes(
41 const Mdl::Model& mdlModel,
42 const Vtx::ModelLod& vtxModel,
43 const std::function<void(const Mdl::Mesh&, const Vtx::Mesh&)>& iteratee
44 );
45
54 void iterateVertices(
55 const Vvd& vvd,
56 const Mdl::Model& model,
57 const Mdl::Mesh& mesh,
58 const Vtx::StripGroup& stripGroup,
59 const std::function<void(const Structs::Vtx::Vertex&, const Structs::Vvd::Vertex&, const Structs::Vector4D&)>&
60 iteratee
61 );
62}
Definition: accessors.cpp:4
void iterateMeshes(const Mdl::Model &mdlModel, const Vtx::ModelLod &vtxModel, const std::function< void(const Mdl::Mesh &, const Vtx::Mesh &)> &iteratee)
Definition: accessors.cpp:38
void iterateModels(const Mdl::BodyPart &mdlBodyPart, const Vtx::BodyPart &vtxBodyPart, const std::function< void(const Mdl::Model &, const Vtx::Model &)> &iteratee)
Definition: accessors.cpp:30
void iterateBodyParts(const Mdl &mdl, const Vtx &vtx, const std::function< void(const Mdl::BodyPart &, const Vtx::BodyPart &)> &iteratee)
Definition: accessors.cpp:24
void iterateVertices(const Vvd &vvd, const Mdl::Model &model, const Mdl::Mesh &mesh, const Vtx::StripGroup &stripGroup, const std::function< void(const Structs::Vtx::Vertex &, const Structs::Vvd::Vertex &, const Structs::Vector4D &)> &iteratee)
Definition: accessors.cpp:46