Parcourir la source

Trying the new FixedArray collection in Camera.h.

David Piuva il y a 2 jours
Parent
commit
ca1ecc3640
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Source/DFPSR/implementation/render/Camera.h

+ 2 - 1
Source/DFPSR/implementation/render/Camera.h

@@ -30,6 +30,7 @@
 #include "../../math/LVector.h"
 #include "../../math/FPlane3D.h"
 #include "../../math/Transform3D.h"
+#include "../../collection/FixedArray.h"
 #include "../math/scalar.h"
 #include "constants.h"
 #include "ProjectedPoint.h"
@@ -39,7 +40,7 @@ namespace dsr {
 
 class ViewFrustum {
 private:
-	FPlane3D planes[6];
+	FixedArray<FPlane3D, 6> planes;
 	int32_t planeCount;
 public:
 	// Named indices to the different planes defining a view frustum.