feat(gx): add equality operator to CGxStateBom

This commit is contained in:
fallenoak 2023-04-15 09:16:06 -05:00
parent 317d94cd1a
commit 36fa30eba8
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
2 changed files with 34 additions and 6 deletions

View file

@ -11,6 +11,7 @@ class CGxStateBom {
// Member variables
union {
int32_t i[3];
uint32_t u[3];
float f[3];
void* p;
} m_data;
@ -23,6 +24,11 @@ class CGxStateBom {
const CGxStateBom& operator=(uint32_t);
const CGxStateBom& operator=(void*);
const CGxStateBom& operator=(C3Vector&);
bool operator==(float);
bool operator==(int32_t);
bool operator==(uint32_t);
bool operator==(void*);
bool operator==(C3Vector&);
bool operator!=(float);
bool operator!=(int32_t);
bool operator!=(uint32_t);