diff options
author | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-27 17:42:26 +0200 |
commit | a12e588079700d55a0b788fea2df7727c2e41f52 (patch) | |
tree | 690072569624c73af5043b3619acaab4d298b1fa /Stars45/TerrainApron.cpp | |
parent | 72bb517271dad40a440533ad0796a88247011199 (diff) | |
download | starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.zip starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.gz starshatter-a12e588079700d55a0b788fea2df7727c2e41f52.tar.bz2 |
Removed MemDebug from FoundationEx
Diffstat (limited to 'Stars45/TerrainApron.cpp')
-rw-r--r-- | Stars45/TerrainApron.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Stars45/TerrainApron.cpp b/Stars45/TerrainApron.cpp index e5cbdbc..6c605cf 100644 --- a/Stars45/TerrainApron.cpp +++ b/Stars45/TerrainApron.cpp @@ -10,7 +10,6 @@ ======== */ -#include "MemDebug.h" #include "Terrain.h" #include "TerrainApron.h" #include "TerrainRegion.h" @@ -46,7 +45,7 @@ const Point& p1, const Point& p2) loc.y = base; radius = (float) (size * 0.75); - heights = new(__FILE__,__LINE__) float[MAX_VERTS]; + heights = new float[MAX_VERTS]; float* pHeight = heights; @@ -104,11 +103,11 @@ TerrainApron::BuildApron() int nverts = MAX_VERTS; int npolys = detail_size * detail_size * 2; - model = new(__FILE__,__LINE__) Model; + model = new Model; model->SetLuminous(true); model->SetDynamic(true); - Material* mtl = new(__FILE__,__LINE__) Material; + Material* mtl = new Material; mtl->Ka = ColorValue(0.5f, 0.5f, 0.5f); mtl->Kd = ColorValue(0.3f, 0.6f, 0.2f); mtl->Ks = Color::Black; @@ -118,7 +117,7 @@ TerrainApron::BuildApron() model->GetMaterials().append(mtl); - Surface* s = new(__FILE__,__LINE__) Surface; + Surface* s = new Surface; VertexSet* vset = 0; if (s) { @@ -199,7 +198,7 @@ TerrainApron::BuildApron() // create continguous segments for each material: s->Normalize(); - Segment* segment = new(__FILE__,__LINE__) Segment(npolys, s->GetPolys(), mtl, model); + Segment* segment = new Segment(npolys, s->GetPolys(), mtl, model); s->GetSegments().append(segment); model->AddSurface(s); |