mirror of
https://github.com/halpz/re3.git
synced 2025-02-26 11:12:11 +00:00
39 lines
912 B
C
39 lines
912 B
C
|
#pragma once
|
||
|
|
||
|
#include "templates.h"
|
||
|
#include "ColBox.h"
|
||
|
#include "ColSphere.h"
|
||
|
#include "ColLine.h"
|
||
|
#include "ColPoint.h"
|
||
|
#include "ColTriangle.h"
|
||
|
|
||
|
struct CColModel
|
||
|
{
|
||
|
CSphere boundingSphere;
|
||
|
CBox boundingBox;
|
||
|
int16 numSpheres;
|
||
|
int16 numBoxes;
|
||
|
int16 numTriangles;
|
||
|
int8 numLines;
|
||
|
uint8 level; // colstore slot but probably still named level
|
||
|
bool ownsCollisionVolumes;
|
||
|
CColSphere *spheres;
|
||
|
CColLine *lines;
|
||
|
CColBox *boxes;
|
||
|
CompressedVector *vertices;
|
||
|
CColTriangle *triangles;
|
||
|
CColTrianglePlane *trianglePlanes;
|
||
|
|
||
|
CColModel(void);
|
||
|
~CColModel(void);
|
||
|
void RemoveCollisionVolumes(void);
|
||
|
void CalculateTrianglePlanes(void);
|
||
|
void RemoveTrianglePlanes(void);
|
||
|
CLink<CColModel*> *GetLinkPtr(void);
|
||
|
void SetLinkPtr(CLink<CColModel*>*);
|
||
|
void GetTrianglePoint(CVector &v, int i) const;
|
||
|
|
||
|
void *operator new(size_t);
|
||
|
void operator delete(void *p, size_t);
|
||
|
CColModel& operator=(const CColModel& other);
|
||
|
};
|