BSPParser
Simple and modern library for parsing the Valve BSP format
Loading...
Searching...
No Matches
src
structs
common.hpp
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
BspParser::Structs
{
6
struct
Vector2
{
7
union
{
8
float
x = 0;
9
float
u;
10
};
11
12
union
{
13
float
y = 0;
14
float
v;
15
};
16
};
17
18
struct
Vector
{
19
float
x = 0;
20
float
y = 0;
21
float
z = 0;
22
};
23
24
struct
Vector4
{
25
float
x = 0;
26
float
y = 0;
27
float
z = 0;
28
float
w = 0;
29
};
30
31
struct
EulerRotation
{
32
float
x = 0;
33
float
y = 0;
34
float
z = 0;
35
};
36
37
struct
ColourRgbExp32
{
38
uint8_t r = 0;
39
uint8_t g = 0;
40
uint8_t b = 0;
41
int8_t exponent = 1;
42
};
43
}
BspParser::Structs
Definition:
BSPParser.hpp:22
BspParser::Structs::ColourRgbExp32
Definition:
common.hpp:37
BspParser::Structs::EulerRotation
Definition:
common.hpp:31
BspParser::Structs::Vector2
Definition:
common.hpp:6
BspParser::Structs::Vector4
Definition:
common.hpp:24
BspParser::Structs::Vector
Definition:
common.hpp:18
Generated by
1.9.5