From a12e588079700d55a0b788fea2df7727c2e41f52 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 17:42:26 +0200 Subject: Removed MemDebug from FoundationEx --- Stars45/Sky.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Stars45/Sky.cpp') diff --git a/Stars45/Sky.cpp b/Stars45/Sky.cpp index f65b39e..ff25044 100644 --- a/Stars45/Sky.cpp +++ b/Stars45/Sky.cpp @@ -11,7 +11,6 @@ Celestial sphere, stars, planets, space dust... */ -#include "MemDebug.h" #include "Sky.h" #include "StarSystem.h" @@ -31,8 +30,8 @@ Stars::Stars(int nstars) luminous = true; shadow = false; - vset = new(__FILE__,__LINE__) VertexSet(nstars); - colors = new(__FILE__,__LINE__) Color[nstars]; + vset = new VertexSet(nstars); + colors = new Color[nstars]; for (int i = 0; i < nstars; i++) { vset->loc[i] = RandomVector(1000); @@ -92,7 +91,7 @@ Dust::Dust(int ndust, bool b) { radius = (float) BOUNDARYx2; luminous = true; - vset = new(__FILE__,__LINE__) VertexSet(ndust); + vset = new VertexSet(ndust); Reset(Point(0, 0, 0)); strcpy_s(name, "Dust"); @@ -254,7 +253,7 @@ PlanetRep::PlanetRep(const char* surface_name, const char* glow_name, loader->LoadTexture(gloss_name, bmp_spec, Bitmap::BMP_SOLID, true); } - mtl_surf = new(__FILE__,__LINE__) Material; + mtl_surf = new Material; mtl_surf->Ka = Color::LightGray; mtl_surf->Kd = Color::White; @@ -275,7 +274,7 @@ PlanetRep::PlanetRep(const char* surface_name, const char* glow_name, } if (atmosphere != Color::Black) { - mtl_limb = new(__FILE__,__LINE__) Material; + mtl_limb = new Material; mtl_limb->Ka = atmosphere; @@ -293,7 +292,7 @@ PlanetRep::PlanetRep(const char* surface_name, const char* glow_name, ring_rad = (maxrad + minrad)/2; loader->LoadTexture(rngname, bmp_ring, Bitmap::BMP_SOLID, true); - mtl_ring = new(__FILE__,__LINE__) Material; + mtl_ring = new Material; mtl_ring->Ka = Color::LightGray; mtl_ring->Kd = Color::White; @@ -325,10 +324,10 @@ double tscale) { const int sect_verts = nsections + 1; - model = new(__FILE__,__LINE__) Model; + model = new Model; own_model = 1; - Surface* surface = new(__FILE__,__LINE__) Surface; + Surface* surface = new Surface; int i, j, m, n; @@ -626,7 +625,7 @@ double tscale) segment->npolys++; } else { - segment = new(__FILE__,__LINE__) Segment; + segment = new Segment; segment->npolys = 1; segment->polys = &polys[n]; -- cgit v1.1