Pārlūkot izejas kodu

Updated Terrain test to use a 3 splat layers instead of 2.
Misc other tweaks to Terrain test.

Steve Grenier 13 gadi atpakaļ
vecāks
revīzija
4893699495
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 4 0
      gameplay/src/TerrainPatch.cpp
  2. 2 0
      gameplay/src/TerrainPatch.h

+ 4 - 0
gameplay/src/TerrainPatch.cpp

@@ -667,6 +667,10 @@ TerrainPatch::Layer::~Layer()
 {
 {
 }
 }
 
 
+TerrainPatch::Level::Level() : model(NULL)
+{
+}
+
 bool TerrainPatch::LayerCompare::operator() (const Layer* lhs, const Layer* rhs) const
 bool TerrainPatch::LayerCompare::operator() (const Layer* lhs, const Layer* rhs) const
 {
 {
     return (lhs->index < rhs->index);
     return (lhs->index < rhs->index);

+ 2 - 0
gameplay/src/TerrainPatch.h

@@ -41,6 +41,8 @@ private:
     struct Level
     struct Level
     {
     {
         Model* model;
         Model* model;
+
+        Level();
     };
     };
 
 
     struct LayerCompare
     struct LayerCompare