mirror of
https://github.com/zeldaret/tp
synced 2026-07-01 04:10:14 -04:00
ec9b03241d
Removes the strong dependency on a single header file and moves declarations to their respective header file. This allows for making dependencies explicit in cpp files and other headers, and also makes it much easier to track where everything related to a particular component is. This change also creates a few header files that previously didn't exist, making it much nicer for people implementing things, as they won't need to create the header file, it'll just be there ready to go. Ideally functions.h wouldn't even be a thing, as this header adds a lot of preprocessing overhead due to its size, and will continue to grow significantly larger over the lifespan of the project, which can also impact the performance of editors that do dependency lookups and context-aware syntax highlighting.
30 lines
395 B
C++
30 lines
395 B
C++
#ifndef C_M3D_H_
|
|
#define C_M3D_H_
|
|
|
|
#include "SComponent/c_xyz/c_xyz.h"
|
|
#include "global.h"
|
|
|
|
class cM3dGLin_members {
|
|
public:
|
|
private:
|
|
cXyz start;
|
|
cXyz end;
|
|
};
|
|
|
|
class cM3dGCps {
|
|
public:
|
|
private:
|
|
cM3dGLin_members base;
|
|
void* vtable;
|
|
float field_0x1c;
|
|
};
|
|
|
|
class cM3dGAab { /* Axis-aligned bounding box */
|
|
public:
|
|
private:
|
|
cXyz min;
|
|
cXyz max;
|
|
void* vtable;
|
|
};
|
|
|
|
#endif |