mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-05 03:55:53 +00:00
Match CCubeSurface
This commit is contained in:
parent
7f3718337f
commit
0787cc17d0
25
include/Kyoto/Graphics/CCubeSurface.hpp
Normal file
25
include/Kyoto/Graphics/CCubeSurface.hpp
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef _CCUBESURFACE
|
||||
#define _CCUBESURFACE
|
||||
|
||||
#include "Kyoto/Math/CAABox.hpp"
|
||||
|
||||
class CCubeModel;
|
||||
class CCubeSurface {
|
||||
struct SSurfaceData {
|
||||
CVector3f mCenter;
|
||||
uint mMaterialIndex;
|
||||
uint mDisplayListSizeAndNormalHint;
|
||||
CCubeModel* mParent;
|
||||
CCubeSurface* mNextSurface;
|
||||
uint mExtraSize;
|
||||
CVector3f mNormal;
|
||||
CAABox mBounds;
|
||||
};
|
||||
|
||||
static const CVector3f skDefaultNormal;
|
||||
const SSurfaceData* x0_data;
|
||||
|
||||
CAABox GetBounds() const;
|
||||
private:
|
||||
};
|
||||
#endif // _CCUBESURFACE
|
13
src/Kyoto/Graphics/CCubeSurface.cpp
Normal file
13
src/Kyoto/Graphics/CCubeSurface.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "Kyoto/Graphics/CCubeSurface.hpp"
|
||||
|
||||
|
||||
const CVector3f CCubeSurface::skDefaultNormal(1.f, 0.f, 0.f);
|
||||
|
||||
|
||||
CAABox CCubeSurface::GetBounds() const {
|
||||
if (x0_data->mExtraSize != 0) {
|
||||
return x0_data->mBounds;
|
||||
}
|
||||
|
||||
return CAABox(x0_data->mCenter, x0_data->mCenter);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user