annotate BSPModel.cpp @ 2331:9551756f46c4

Moving functions out of mm7_6.cpp into appropriate classes as static methods or free functions
author Grumpy7
date Wed, 02 Apr 2014 01:21:05 +0200
parents 2e02c384c62b
children bddcaf5d5db2
rev   line source
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
1 #define _CRT_SECURE_NO_WARNINGS
1583
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
2 #include <stdlib.h>
75fafd8ced59 Allocator (CMemory) bye-bye
Nomad
parents: 72
diff changeset
3
0
Ritor1
parents:
diff changeset
4 #include "BSPModel.h"
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7
Ritor1
parents:
diff changeset
8 //----- (00478389) --------------------------------------------------------
Ritor1
parents:
diff changeset
9 void BSPModel::Release()
Ritor1
parents:
diff changeset
10 {
2251
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
11 free(this->pVertices.pVertices);
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
12 this->pVertices.pVertices = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
13 free(this->pFaces);
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
14 this->pFaces = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
15 free(this->pFacesOrdering);
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
16 this->pFacesOrdering = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
17 free(this->pNodes);
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
18 this->pNodes = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
19 this->uNumNodes = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
20 this->uNumFaces = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
21 this->pVertices.uNumVertices = 0;
47bcb700b74b for StackLight_TerrainFace
Ritor1
parents: 1583
diff changeset
22 this->uNumConvexFaces = 0;
0
Ritor1
parents:
diff changeset
23 }