Mercurial > mm7
annotate BSPModel.cpp @ 2462:1d04e48651d4
Render split into interface and realization, added Direct3D 11
author | a.parshin |
---|---|
date | Tue, 12 Aug 2014 21:34:18 +0300 |
parents | f4af3b203f65 |
children |
rev | line source |
---|---|
2415 | 1 #define _CRTDBG_MAP_ALLOC |
2 #include <stdlib.h> | |
3 #include <crtdbg.h> | |
4 | |
2253
aff7a7b072b7
adding _CRT_SECURE_NO_WARNINGS to get rid of a few hundrer annoying warnings + adding count parameter to swprintf
Grumpy7
parents:
1583
diff
changeset
|
5 #define _CRT_SECURE_NO_WARNINGS |
1583 | 6 #include <stdlib.h> |
7 | |
0 | 8 #include "BSPModel.h" |
9 | |
10 | |
11 | |
12 //----- (00478389) -------------------------------------------------------- | |
13 void BSPModel::Release() | |
14 { | |
2251 | 15 free(this->pVertices.pVertices); |
16 this->pVertices.pVertices = 0; | |
17 free(this->pFaces); | |
2369
bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents:
2254
diff
changeset
|
18 this->pFaces = nullptr; |
2251 | 19 free(this->pFacesOrdering); |
2369
bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents:
2254
diff
changeset
|
20 this->pFacesOrdering = nullptr; |
2251 | 21 free(this->pNodes); |
2369
bddcaf5d5db2
removing non-nullptr conditions before frees, chaning 0 and NULL assignmnets to pointers to nullptr assignments
Grumpy7
parents:
2254
diff
changeset
|
22 this->pNodes = nullptr; |
2251 | 23 this->uNumNodes = 0; |
24 this->uNumFaces = 0; | |
25 this->pVertices.uNumVertices = 0; | |
26 this->uNumConvexFaces = 0; | |
0 | 27 } |