2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 05:51:22 +00:00
metaforce/Runtime/Collision/CCollisionEdge.hpp
Lioncash a633b8e8fd General: Normalize RuntimeCommon include paths
Performs the same normalizing done to the RuntimeCommonB target, now all
of the runtime headers have normalized include paths.
2019-09-28 04:14:29 -04:00

24 lines
498 B
C++

#pragma once
#include "Runtime/RetroTypes.hpp"
namespace urde {
class CCollisionEdge {
u16 x0_index1 = -1;
u16 x2_index2 = -1;
public:
CCollisionEdge() = default;
CCollisionEdge(CInputStream&);
CCollisionEdge(u16 v0, u16 v1) : x0_index1(v0), x2_index2(v1) {}
u16 GetVertIndex1() const { return x0_index1; }
u16 GetVertIndex2() const { return x2_index2; }
void swapBig() {
x0_index1 = hecl::SBig(x0_index1);
x2_index2 = hecl::SBig(x2_index2);
}
};
} // namespace urde