SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
Generic.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <sourcepp/Macros.h>
6#include <sourcepp/Math.h>
7
8namespace mdlpp {
9
10constexpr int ROOT_LOD = 0;
11constexpr int MAX_LOD_COUNT = 8;
12constexpr int MAX_BONES_PER_VERTEX = 3;
13
14struct BBox {
15 int32_t bone;
16 int32_t group;
17 sourcepp::math::Vec3f bboxMin;
18 sourcepp::math::Vec3f bboxMax;
19
20 //int32_t hitboxNameOffset;
21 std::string name;
22
23 //int32_t _unused0[8];
24};
25
26struct Movement {
27 enum Flags : int32_t {
29 // todo(flags): Movement
30 };
31
32 int32_t endFrame;
36 float yawEnd;
37 sourcepp::math::Vec3f movement;
38 sourcepp::math::Vec3f relativePosition;
39};
41
42} // namespace mdlpp
#define SOURCEPP_BITFLAGS_ENUM(Enum)
Defines bitwise operators for an enum or enum class.
Definition: Macros.h:26
Definition: mdlpp.h:9
constexpr int ROOT_LOD
Definition: Generic.h:10
constexpr int MAX_LOD_COUNT
Definition: Generic.h:11
constexpr int MAX_BONES_PER_VERTEX
Definition: Generic.h:12
sourcepp::math::Vec3f bboxMin
Definition: Generic.h:17
int32_t group
Definition: Generic.h:16
sourcepp::math::Vec3f bboxMax
Definition: Generic.h:18
std::string name
Definition: Generic.h:21
int32_t bone
Definition: Generic.h:15
float velocityStart
Definition: Generic.h:34
int32_t endFrame
Definition: Generic.h:32
float yawEnd
Definition: Generic.h:36
sourcepp::math::Vec3f relativePosition
Definition: Generic.h:38
sourcepp::math::Vec3f movement
Definition: Generic.h:37
Flags flags
Definition: Generic.h:33
float velocityEnd
Definition: Generic.h:35