blob: d8358f93a3e4b7dd8bf4b42632948da4d7e6f024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "GeoUtils.h"
#define next_s16_in_geo_script(src) (int16_t)BSWAP16((*(*src)++))
int16_t* read_vec3s_to_vec3f(Vec3f& dst, int16_t* src) {
dst.x = next_s16_in_geo_script(&src);
dst.y = next_s16_in_geo_script(&src);
dst.z = next_s16_in_geo_script(&src);
return src;
}
int16_t* read_vec3s(Vec3s& dst, int16_t* src) {
dst.x = next_s16_in_geo_script(&src);
dst.y = next_s16_in_geo_script(&src);
dst.z = next_s16_in_geo_script(&src);
return src;
}
|