MDLParser
Simple and modern library for parsing the Source engine model formats
Loading...
Searching...
No Matches
vvd.hpp
1#pragma once
2
3#include "structs/vvd.hpp"
4#include <memory>
5#include <optional>
6#include <vector>
7
8namespace MdlParser {
12 class Vvd {
13 public:
21 explicit Vvd(
22 const std::weak_ptr<std::vector<std::byte>>& data, const std::optional<int32_t>& checksum = std::nullopt
23 );
24
30 [[nodiscard]] int32_t getChecksum() const;
31
36 [[nodiscard]] const std::vector<Structs::Vvd::Vertex>& getVertices() const;
37
43 [[nodiscard]] const std::vector<Structs::Vector4D>& getTangents() const;
44
49 [[nodiscard]] int32_t getLevelsOfDetail() const;
50
51 private:
53 std::vector<Structs::Vvd::Vertex> vertices;
54 std::vector<Structs::Vector4D> tangents;
55 };
56}
Definition: vvd.hpp:12
int32_t getLevelsOfDetail() const
Definition: vvd.cpp:92
const std::vector< Structs::Vector4D > & getTangents() const
Definition: vvd.cpp:88
const std::vector< Structs::Vvd::Vertex > & getVertices() const
Definition: vvd.cpp:85
int32_t getChecksum() const
Definition: vvd.cpp:81
Definition: MDLParser.hpp:6
Definition: vvd.hpp:12