add w to CVector; adjust col structs a bit

This commit is contained in:
aap
2021-02-01 10:57:55 +01:00
parent bb47f3a8e4
commit 3f60034c39
8 changed files with 44 additions and 16 deletions

View File

@@ -2,10 +2,11 @@
#include "SurfaceTable.h"
struct CSphere
// TODO(LCS): maybe this was in a union with CVuVector? or is the alignment manual?
struct TYPEALIGN(16) CSphere
{
// NB: this has to be compatible with a CVuVector
CVector center;
RwV3d center;
float radius;
void Set(float radius, const CVector &center) { this->center = center; this->radius = radius; }
};