#ifndef SSURFACE_H #define SSURFACE_H #include "../CMaterialSet.h" #include "CVertex.h" #include #include #include #include #include #include #include #include struct SSurface { u32 VertexCount; u32 TriangleCount; CAABox AABox; CVector3f CenterPoint; u32 MaterialID; CVector3f ReflectionDirection; struct SPrimitive { EGXPrimitiveType Type; std::vector Vertices; }; std::vector Primitives; SSurface() { VertexCount = 0; TriangleCount = 0; } std::pair IntersectsRay(const CRay& Ray, const CTransform4f& Transform = CTransform4f::skIdentity); }; #endif // SSURFACE_H