6 #include "VectorMath.h"
7 #include "AllVertexTypes.h"
9 #include "CullingVolume.h"
11 #include "ChunkedFileFormat.h"
12 #include "BinaryParsing.h"
13 #include "Rendering.h"
14 #include "Collision.h"
15 #include "IQuantizedMeshSetChunkReaderMeshFactory.h"
16 #include "CollisionGroup.h"
17 #include "QuantizedMeshInfo.h"
27 namespace ChunkedFileFormat
29 namespace QuantizedMeshSetChunkReader
36 std::string debugName;
40 , pCullingVolumeTree(NULL)
48 v3 quantizationOrigin;
49 float quantizationScale;
52 bool collisionNeedsLegacyFixup;
53 std::vector<Eegeo::Collision::CollisionBvhNode>* collisionNodes;
54 std::vector<u16>* collisionTriListIndices;
55 std::vector<Eegeo::Rendering::VertexTypes::ShortPositionVertex>* collisionPoints;
56 std::vector<Eegeo::Collision::CollisionMaterialIndexLookupPair>* materialIndexLookupPairs;
59 : quantizationOrigin(v3::Zero())
60 , quantizationScale(0.f)
63 , collisionNeedsLegacyFixup(
false)
64 , collisionNodes(NULL)
65 , collisionTriListIndices(NULL)
66 , collisionPoints(NULL)
67 , materialIndexLookupPairs(NULL)
74 std::vector<ReaderMeshResult> meshResults;
75 std::vector<ReaderCollisionResult> collisionResults;
84 std::vector<QuantizedMeshInfo>& results);
102 PreGeometryReadCallback* preGeometryReadCallback,
103 PreMeshCreateCallback* preMeshCreateCallback,
104 const std::string& debugNamePrefix,
107 bool generateCollision,
118 const Rendering::LayerIds::Values layerId,
123 bool renderableItemOwnsMaterial);
130 bool renderableItemOwnsMaterial);
133 const Rendering::LayerIds::Values layerId,
138 bool renderableItemOwnsMaterial);
141 const Rendering::LayerIds::Values layerId,
146 bool renderableItemOwnsMaterial);