Browse Source

Removed hel mstl subfolders

Thomas Buck 11 years ago
parent
commit
884ce37576

+ 3
- 0
ChangeLog View File

@@ -6,6 +6,9 @@
6 6
  OpenRaider (0.1.2) xythobuz <xythobuz@xythobuz.de>
7 7
 
8 8
 	[ 20140110 ]
9
+	* Converted many FIXME comments to be in the doxygen documentation
10
+	* Removed hel & mstl folders, moved into parent directory
11
+	* mtk_tga Unit Test uses greatest
9 12
 	* Moved remaining Unit Tests (Network & TombRaider)
10 13
 	* memory_test Unit Test no longer produces warnings
11 14
 	* Building a memory test build no longer produces warnings

+ 1
- 1
Doxyfile View File

@@ -218,7 +218,7 @@ TAB_SIZE               = 4
218 218
 # "Side Effects:". You can put \n's in the value part of an alias to insert
219 219
 # newlines.
220 220
 
221
-ALIASES                = "fixme=\xrefitem fixme \"FIXME\" \"Fix Me\""
221
+ALIASES                = "fixme=\xrefitem fixme \"FIXME\" \"Fix-Me Entries\""
222 222
 
223 223
 # This tag can be used to specify a number of word-keyword mappings (TCL only).
224 224
 # A mapping has the form "name=value". For example adding "class=itcl::class"

+ 10
- 14
Makefile View File

@@ -32,7 +32,7 @@ UNAME=$(shell uname -s)
32 32
 BASE_DEFS=$(shell sdl-config --cflags) -Iinclude -DSDL_INTERFACE \
33 33
 	-DUSING_OPENGL -DZLIB_SUPPORT -DUSING_EMITTER \
34 34
 	-DUSING_OPENAL -DUSING_MTK_TGA -DUSING_PTHREADS \
35
-	-DUSING_HEL -DHAVE_SDL_TTF
35
+	-DHAVE_SDL_TTF
36 36
 
37 37
 BASE_LIBS=$(shell sdl-config --libs) -lz -lstdc++ \
38 38
 	-lpthread -lSDL_ttf
@@ -175,26 +175,20 @@ depend:
175 175
 
176 176
 ################################################################
177 177
 
178
-# Later hel will become a seperate library once it matures
179
-HEL_OBJ = \
180
-	$(BUILDDIR)/math.o \
181
-	$(BUILDDIR)/Matrix.o \
182
-	$(BUILDDIR)/Quaternion.o \
183
-	$(BUILDDIR)/Vector3d.o \
184
-	$(BUILDDIR)/ViewVolume.o
185
-
186 178
 OBJS = \
187 179
 	$(DEBUG_OBJ) \
188
-	$(HEL_OBJ) \
189 180
 	$(BUILDDIR)/Camera.o \
190 181
 	$(BUILDDIR)/Emitter.o \
191 182
 	$(BUILDDIR)/GLString.o \
192 183
 	$(BUILDDIR)/Light.o \
184
+	$(BUILDDIR)/MatMath.o \
185
+	$(BUILDDIR)/Matrix.o \
193 186
 	$(BUILDDIR)/mtk_tga.o \
194 187
 	$(BUILDDIR)/Network.o \
195 188
 	$(BUILDDIR)/OpenGLMesh.o \
196 189
 	$(BUILDDIR)/OpenRaider.o \
197 190
 	$(BUILDDIR)/Particle.o \
191
+	$(BUILDDIR)/Quaternion.o \
198 192
 	$(BUILDDIR)/Render.o \
199 193
 	$(BUILDDIR)/SDLSystem.o \
200 194
 	$(BUILDDIR)/SkeletalModel.o \
@@ -202,6 +196,8 @@ OBJS = \
202 196
 	$(BUILDDIR)/System.o \
203 197
 	$(BUILDDIR)/Texture.o \
204 198
 	$(BUILDDIR)/TombRaider.o \
199
+	$(BUILDDIR)/Vector3d.o \
200
+	$(BUILDDIR)/ViewVolume.o \
205 201
 	$(BUILDDIR)/World.o
206 202
 
207 203
 
@@ -324,8 +320,8 @@ Matrix.test:
324 320
 	@-echo "Building Matrix unit test"
325 321
 	mkdir -p $(BUILD_TEST_DIR)
326 322
 	$(CC) -Wall -g -lm -lstdc++ -Iinclude \
327
-	src/hel/Matrix.cpp src/hel/Quaternion.cpp src/hel/Vector3d.cpp \
328
-	test/hel/Matrix.cpp -o $(BUILD_TEST_DIR)/Matrix.test
323
+	src/Matrix.cpp src/Quaternion.cpp src/Vector3d.cpp \
324
+	test/Matrix.cpp -o $(BUILD_TEST_DIR)/Matrix.test
329 325
 	@-echo "================================================="
330 326
 	@-echo "Running Matrix unit test"
331 327
 	$(BUILD_TEST_DIR)/Matrix.test
@@ -334,7 +330,7 @@ Quaternion.test:
334 330
 	@-echo "Building Quaternion unit test"
335 331
 	mkdir -p $(BUILD_TEST_DIR)
336 332
 	$(CC) -Wall -g -lm -lstdc++ -Iinclude \
337
-	src/hel/Quaternion.cpp test/hel/Quaternion.cpp -o $(BUILD_TEST_DIR)/Quaternion.test
333
+	src/Quaternion.cpp test/Quaternion.cpp -o $(BUILD_TEST_DIR)/Quaternion.test
338 334
 	@-echo "================================================="
339 335
 	@-echo "Running Quaternion unit test"
340 336
 	$(BUILD_TEST_DIR)/Quaternion.test
@@ -343,7 +339,7 @@ Math.test:
343 339
 	@-echo "Building Math unit test"
344 340
 	mkdir -p $(BUILD_TEST_DIR)
345 341
 	$(CC) -Wall -g -lm -lstdc++ -Iinclude \
346
-	src/hel/math.cpp src/hel/Vector3d.cpp test/hel/math.cpp -o $(BUILD_TEST_DIR)/Math.test
342
+	src/MatMath.cpp src/Vector3d.cpp test/MatMath.cpp -o $(BUILD_TEST_DIR)/Math.test
347 343
 	@-echo "================================================="
348 344
 	@-echo "Running hel unit test"
349 345
 	$(BUILD_TEST_DIR)/Math.test

include/hel/BoundingVolume.h → include/BoundingVolume.h View File

@@ -28,7 +28,7 @@
28 28
 #ifndef GUARD__LIBHEL_MONGOOSE_BOUNDINGVOLUME_H_
29 29
 #define GUARD__LIBHEL_MONGOOSE_BOUNDINGVOLUME_H_
30 30
 
31
-#include <hel/math.h>
31
+#include <MatMath.h>
32 32
 
33 33
 
34 34
 class BoundingSphere

+ 3
- 3
include/Camera.h View File

@@ -38,9 +38,9 @@
38 38
 #ifndef __HEL_MONGOOSE_CAMERA_H_
39 39
 #define __HEL_MONGOOSE_CAMERA_H_
40 40
 
41
-#include "hel/math.h"
42
-#include "hel/Matrix.h"
43
-#include "hel/Quaternion.h"
41
+#include <MatMath.h>
42
+#include <Matrix.h>
43
+#include <Quaternion.h>
44 44
 
45 45
 enum camera_command                /* Interactive camera control */
46 46
 {

+ 1
- 1
include/Emitter.h View File

@@ -26,7 +26,7 @@
26 26
 #ifndef __FREYJA_MONGOOSE_EMITTER_H_
27 27
 #define __FREYJA_MONGOOSE_EMITTER_H_
28 28
 
29
-#include "Particle.h"
29
+#include <Particle.h>
30 30
 
31 31
 
32 32
 class Emitter

include/hel/Entity.h → include/Entity.h View File

@@ -27,11 +27,11 @@
27 27
 #ifndef GUARD__HEL_MONGOOSE_ENTITY_H_
28 28
 #define GUARD__HEL_MONGOOSE_ENTITY_H_
29 29
 
30
-#include <hel/math.h>
31
-#include <hel/BoundingVolume.h>
32
-#include <hel/Quaternion.h>
33
-#include <hel/Vector3d.h>
34
-#include <hel/Mass.h>
30
+#include <MatMath.h>
31
+#include <BoundingVolume.h>
32
+#include <Quaternion.h>
33
+#include <Vector3d.h>
34
+#include <Mass.h>
35 35
 
36 36
 
37 37
 typedef enum

+ 1
- 1
include/GLString.h View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file GLString.h
2
+ * \file include/GLString.h
3 3
  * \brief Open GL rendering font/string class
4 4
  *
5 5
  * \author Mongoose

+ 1
- 1
include/Light.h View File

@@ -23,7 +23,7 @@
23 23
 #ifndef __FREYJA_MONGOOSE_LIGHT_H_
24 24
 #define __FREYJA_MONGOOSE_LIGHT_H_
25 25
 
26
-#include "hel/math.h"
26
+#include <MatMath.h>
27 27
 
28 28
 
29 29
 class Light

include/mstl/List.h → include/List.h View File


include/mstl/Map.h → include/Map.h View File

@@ -39,7 +39,7 @@
39 39
 #include <stdlib.h>
40 40
 #include <stdio.h>
41 41
 
42
-#include <mstl/Tree.h>
42
+#include <Tree.h>
43 43
 
44 44
 #ifdef DEBUG_MEMORY
45 45
 #include <memory_test.h>

include/hel/math.h → include/MatMath.h View File


include/hel/Matrix.h → include/Matrix.h View File

@@ -1,6 +1,6 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : Freyja
5 5
  * Author  : Terry 'Mongoose' Hendrix II
6 6
  * Website : http://www.westga.edu/~stu7440/
@@ -10,10 +10,10 @@
10 10
  * Comments: 3d Matrix in class form
11 11
  *
12 12
  *
13
- *           This file was generated using Mongoose's C++ 
13
+ *           This file was generated using Mongoose's C++
14 14
  *           template generator script.  <stu7440@westga.edu>
15
- * 
16
- *-- History ------------------------------------------------ 
15
+ *
16
+ *-- History ------------------------------------------------
17 17
  *
18 18
  * 2003.06.17:
19 19
  * Mongoose - Now in column order to match OpenGL user needs,
@@ -28,9 +28,9 @@
28 28
 #define GUARD__FREYJA_MONGOOSE_MATRIX_H_
29 29
 
30 30
 
31
-#include <hel/math.h>
32
-#include <hel/Quaternion.h>
33
-#include <hel/Vector3d.h>
31
+#include <MatMath.h>
32
+#include <Quaternion.h>
33
+#include <Vector3d.h>
34 34
 
35 35
 	///////////////////////////////////////////////
36 36
 	// Multidim map for row order encoding       //
@@ -61,29 +61,29 @@ class Matrix
61 61
 
62 62
 	Matrix();
63 63
 	/*------------------------------------------------------
64
-	 * Pre  : 
64
+	 * Pre  :
65 65
 	 * Post : Constructs an object of Matrix
66 66
 	 *
67 67
 	 *-- History ------------------------------------------
68 68
 	 *
69
-	 * 2002.05.11: 
69
+	 * 2002.05.11:
70 70
 	 * Mongoose - Created
71 71
 	 ------------------------------------------------------*/
72 72
 
73 73
 	Matrix(matrix_t mat);
74 74
 	/*------------------------------------------------------
75
-	 * Pre  : 
75
+	 * Pre  :
76 76
 	 * Post : Constructs an object of Matrix
77 77
 	 *
78 78
 	 *-- History ------------------------------------------
79 79
 	 *
80
-	 * 2002.05.11: 
80
+	 * 2002.05.11:
81 81
 	 * Mongoose - Created
82 82
 	 ------------------------------------------------------*/
83 83
 
84 84
 	Matrix(Quaternion &q);
85 85
 	/*------------------------------------------------------
86
-	 * Pre  : 
86
+	 * Pre  :
87 87
 	 * Post : Converts and asigns Q to a Matrix
88 88
 	 *        returns quaternion as Matrix
89 89
 	 *
@@ -100,7 +100,7 @@ class Matrix
100 100
 	 *
101 101
 	 *-- History ------------------------------------------
102 102
 	 *
103
-	 * 2002.05.11: 
103
+	 * 2002.05.11:
104 104
 	 * Mongoose - Created
105 105
 	 ------------------------------------------------------*/
106 106
 
@@ -110,7 +110,7 @@ class Matrix
110 110
 
111 111
 	void getMatrix(matrix_t mat);
112 112
 	/*------------------------------------------------------
113
-	 * Pre  : 
113
+	 * Pre  :
114 114
 	 * Post : Returns this matrix copy
115 115
 	 *
116 116
 	 *-- History ------------------------------------------
@@ -121,7 +121,7 @@ class Matrix
121 121
 
122 122
 	void getTransposeMatrix(matrix_t mat);
123 123
 	/*------------------------------------------------------
124
-	 * Pre  : 
124
+	 * Pre  :
125 125
 	 * Post : Returns this matrix transposed
126 126
 	 *
127 127
 	 *-- History ------------------------------------------
@@ -132,7 +132,7 @@ class Matrix
132 132
 
133 133
 	bool getInvert(matrix_t mat);
134 134
 	/*------------------------------------------------------
135
-	 * Pre  : 
135
+	 * Pre  :
136 136
 	 * Post : Returns this matrix inverted
137 137
 	 *
138 138
 	 *-- History ------------------------------------------
@@ -156,7 +156,7 @@ class Matrix
156 156
 	/*------------------------------------------------------
157 157
 	 * Pre  : Multiplies <V> vector (double[4]) and <This> matrix
158 158
 	 *
159
-	 * Post : Returns <Result> vector, 
159
+	 * Post : Returns <Result> vector,
160 160
 	 *        <V> and <Result> maybe be the same vector
161 161
 	 *
162 162
 	 *-- History ------------------------------------------
@@ -169,7 +169,7 @@ class Matrix
169 169
 	/*------------------------------------------------------
170 170
 	 * Pre  : Multiplies <V> vector and <This> matrix
171 171
 	 *
172
-	 * Post : Returns <Result> vector, 
172
+	 * Post : Returns <Result> vector,
173 173
 	 *        <V> and <Result> maybe be the same vector
174 174
 	 *
175 175
 	 *-- History ------------------------------------------
@@ -182,7 +182,7 @@ class Matrix
182 182
 	/*------------------------------------------------------
183 183
 	 * Pre  : Multiplies <V> vector and <This> matrix
184 184
 	 *
185
-	 * Post : Returns <Result> vector, 
185
+	 * Post : Returns <Result> vector,
186 186
 	 *        <V> and <Result> maybe be the same vector
187 187
 	 *
188 188
 	 *-- History ------------------------------------------
@@ -193,7 +193,7 @@ class Matrix
193 193
 
194 194
 	void print();
195 195
 	/*------------------------------------------------------
196
-	 * Pre  : 
196
+	 * Pre  :
197 197
 	 * Post : Prints matrix values to stdout
198 198
 	 *
199 199
 	 *-- History ------------------------------------------
@@ -204,7 +204,7 @@ class Matrix
204 204
 
205 205
 	bool isIdentity();
206 206
 	/*------------------------------------------------------
207
-	 * Pre  : 
207
+	 * Pre  :
208 208
 	 * Post : Is this matrix the identity matrix?
209 209
 	 *
210 210
 	 *-- History ------------------------------------------
@@ -242,7 +242,7 @@ class Matrix
242 242
 
243 243
 	void setIdentity();
244 244
 	/*------------------------------------------------------
245
-	 * Pre  : 
245
+	 * Pre  :
246 246
 	 * Post : Sets to identity matrix
247 247
 	 *
248 248
 	 *-- History ------------------------------------------
@@ -253,7 +253,7 @@ class Matrix
253 253
 
254 254
 	void setMatrix(matrix_t mat);
255 255
 	/*------------------------------------------------------
256
-	 * Pre  : 
256
+	 * Pre  :
257 257
 	 * Post : Set the matrix ( dangerous, scary boo )
258 258
 	 *
259 259
 	 *-- History ------------------------------------------
@@ -286,7 +286,7 @@ class Matrix
286 286
 
287 287
 	void scale(vec_t x, vec_t y, vec_t z);
288 288
 	/*------------------------------------------------------
289
-	 * Pre  : 
289
+	 * Pre  :
290 290
 	 * Post : Scales object in 3 space
291 291
 	 *
292 292
 	 *-- History ------------------------------------------
@@ -297,7 +297,7 @@ class Matrix
297 297
 
298 298
 	void scale(const vec_t *xyz);
299 299
 	/*------------------------------------------------------
300
-	 * Pre  : 
300
+	 * Pre  :
301 301
 	 * Post : Scales object in 3 space
302 302
 	 *
303 303
 	 *-- History ------------------------------------------
@@ -308,7 +308,7 @@ class Matrix
308 308
 
309 309
 	void translate(vec_t x, vec_t y, vec_t z);
310 310
 	/*------------------------------------------------------
311
-	 * Pre  : 
311
+	 * Pre  :
312 312
 	 * Post : Translates ( moves ) object in 3 space
313 313
 	 *
314 314
 	 *-- History ------------------------------------------
@@ -319,7 +319,7 @@ class Matrix
319 319
 
320 320
 	void translate(const vec_t *xyz);
321 321
 	/*------------------------------------------------------
322
-	 * Pre  : 
322
+	 * Pre  :
323 323
 	 * Post : Translates ( moves ) object in 3 space
324 324
 	 *
325 325
 	 *-- History ------------------------------------------
@@ -330,7 +330,7 @@ class Matrix
330 330
 
331 331
 	void transpose();
332 332
 	/*------------------------------------------------------
333
-	 * Pre  : 
333
+	 * Pre  :
334 334
 	 * Post : Transpose this matrix
335 335
 	 *
336 336
 	 *-- History ------------------------------------------
@@ -355,7 +355,7 @@ class Matrix
355 355
 
356 356
 	void copy(matrix_t source, matrix_t dest);
357 357
 	/*------------------------------------------------------
358
-	 * Pre  : 
358
+	 * Pre  :
359 359
 	 * Post : Copys value of source to dest
360 360
 	 *
361 361
 	 *-- History ------------------------------------------

+ 2
- 2
include/OpenGLMesh.h View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file OpenGLMesh.h
2
+ * \file include/OpenGLMesh.h
3 3
  * \brief OpenGL Mesh
4 4
  *
5 5
  * \author Mongoose
@@ -10,7 +10,7 @@
10 10
 #ifndef GUARD__OPENRAIDER_MONGOOSE_OPENGLMESH_H_
11 11
 #define GUARD__OPENRAIDER_MONGOOSE_OPENGLMESH_H_
12 12
 
13
-#include "hel/math.h"
13
+#include <MatMath.h>
14 14
 
15 15
 class OpenGLMesh {
16 16
 public:

+ 10
- 10
include/OpenRaider.h View File

@@ -27,16 +27,16 @@
27 27
 #define GUARD__OPENRAIDER_MONGOOSE_OPENRAIDER_H_
28 28
 
29 29
 
30
-#include "mstl/List.h"
31
-#include "mstl/Map.h"
32
-#include "mstl/Vector.h"
33
-#include "TombRaider.h"
34
-#include "Camera.h"
35
-#include "Render.h"
36
-#include "Sound.h"
37
-#include "SDLSystem.h"
38
-#include "Network.h"
39
-#include "World.h"
30
+#include <List.h>
31
+#include <Map.h>
32
+#include <Vector.h>
33
+#include <TombRaider.h>
34
+#include <Camera.h>
35
+#include <Render.h>
36
+#include <Sound.h>
37
+#include <SDLSystem.h>
38
+#include <Network.h>
39
+#include <World.h>
40 40
 
41 41
 
42 42
 typedef enum

+ 2
- 2
include/Particle.h View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file Particle.h
2
+ * \file include/Particle.h
3 3
  * \brief Particle system base header
4 4
  *
5 5
  * \author Mongoose
@@ -8,7 +8,7 @@
8 8
 #ifndef __FREYJA_MONGOOSE_PARTICLE_H_
9 9
 #define __FREYJA_MONGOOSE_PARTICLE_H_
10 10
 
11
-#include "hel/math.h"
11
+#include <MatMath.h>
12 12
 
13 13
 /*!
14 14
  * \brief Partcle systems atomic base

include/hel/Quaternion.h → include/Quaternion.h View File

@@ -1,6 +1,6 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : Hel
5 5
  * Author  : Terry 'Mongoose' Hendrix II
6 6
  * Website : http://www.westga.edu/~stu7440/
@@ -10,14 +10,14 @@
10 10
  * Comments: Quaternion now in C++ class form fresh from the grove
11 11
  *
12 12
  *
13
- *           This file was generated using Mongoose's C++ 
13
+ *           This file was generated using Mongoose's C++
14 14
  *           template generator script.  <stu7440@westga.edu>
15
- * 
15
+ *
16 16
  *-- Test Defines -----------------------------------------------
17
- *           
18
- * UNIT_TEST_QUATERNION - Builds Quaternion class as a console unit test 
19 17
  *
20
- *-- History ------------------------------------------------ 
18
+ * UNIT_TEST_QUATERNION - Builds Quaternion class as a console unit test
19
+ *
20
+ *-- History ------------------------------------------------
21 21
  *
22 22
  * 2002.12.16:
23 23
  * Mongoose - Created, based on mtk3d ( freyja )
@@ -27,8 +27,7 @@
27 27
 #ifndef GUARD__HEL_MONGOOSE_QUATERNION_H_
28 28
 #define GUARD__HEL_MONGOOSE_QUATERNION_H_
29 29
 
30
-#include <hel/math.h>
31
-//#include <hel/Matrix.h>
30
+#include <MatMath.h>
32 31
 
33 32
 class Quaternion
34 33
 {
@@ -40,23 +39,23 @@ class Quaternion
40 39
 
41 40
 	Quaternion();
42 41
 	/*------------------------------------------------------
43
-	 * Pre  : 
42
+	 * Pre  :
44 43
 	 * Post : Constructs an object of Quaternion
45 44
 	 *
46 45
 	 *-- History ------------------------------------------
47 46
 	 *
48
-	 * 2002.12.16: 
47
+	 * 2002.12.16:
49 48
 	 * Mongoose - Created
50 49
 	 ------------------------------------------------------*/
51 50
 
52 51
 	Quaternion(vec_t w, vec_t x, vec_t y, vec_t z);
53 52
 	/*------------------------------------------------------
54
-	 * Pre  : 
53
+	 * Pre  :
55 54
 	 * Post : Constructs an object of Quaternion
56 55
 	 *
57 56
 	 *-- History ------------------------------------------
58 57
 	 *
59
-	 * 2002.12.16: 
58
+	 * 2002.12.16:
60 59
 	 * Mongoose - Created
61 60
 	 ------------------------------------------------------*/
62 61
 
@@ -67,7 +66,7 @@ class Quaternion
67 66
 	 *
68 67
 	 *-- History ------------------------------------------
69 68
 	 *
70
-	 * 2002.12.16: 
69
+	 * 2002.12.16:
71 70
 	 * Mongoose - Created
72 71
 	 ------------------------------------------------------*/
73 72
 
@@ -78,7 +77,7 @@ class Quaternion
78 77
 	 *
79 78
 	 *-- History ------------------------------------------
80 79
 	 *
81
-	 * 2002.12.16: 
80
+	 * 2002.12.16:
82 81
 	 * Mongoose - Created
83 82
 	 ------------------------------------------------------*/
84 83
 
@@ -100,7 +99,7 @@ class Quaternion
100 99
 
101 100
 	Quaternion operator =(const Quaternion &q);
102 101
 	/*------------------------------------------------------
103
-	 * Pre  : 
102
+	 * Pre  :
104 103
 	 * Post : Asigns Q to this quaternion
105 104
 	 *        returns (this) resultant quaternion
106 105
 	 *
@@ -112,7 +111,7 @@ class Quaternion
112 111
 
113 112
 	Quaternion operator *(const Quaternion &q);
114 113
 	/*------------------------------------------------------
115
-	 * Pre  : 
114
+	 * Pre  :
116 115
 	 * Post : Multiplies Q and this quaternion
117 116
 	 *        returns resultant quaternion
118 117
 	 *        ( Use normalize() call for unit quaternion )
@@ -125,7 +124,7 @@ class Quaternion
125 124
 
126 125
 	Quaternion operator /(const Quaternion &q);
127 126
 	/*------------------------------------------------------
128
-	 * Pre  : 
127
+	 * Pre  :
129 128
 	 * Post : Dividess Q from this quaternion
130 129
 	 *        returns quotient quaternion
131 130
 	 *
@@ -137,7 +136,7 @@ class Quaternion
137 136
 
138 137
 	Quaternion operator +(const Quaternion &q);
139 138
 	/*------------------------------------------------------
140
-	 * Pre  : 
139
+	 * Pre  :
141 140
 	 * Post : Adds Q and this quaternion
142 141
 	 *        returns resultant quaternion
143 142
 	 *
@@ -149,7 +148,7 @@ class Quaternion
149 148
 
150 149
 	Quaternion operator -(const Quaternion &q);
151 150
 	/*------------------------------------------------------
152
-	 * Pre  : 
151
+	 * Pre  :
153 152
 	 * Post : Subtracts Q from this quaternion
154 153
 	 *        returns resultant quaternion
155 154
 	 *
@@ -161,7 +160,7 @@ class Quaternion
161 160
 
162 161
 	bool operator ==(const Quaternion &q);
163 162
 	/*------------------------------------------------------
164
-	 * Pre  : 
163
+	 * Pre  :
165 164
 	 * Post : Compares Q to this quaternion
166 165
 	 *        returns boolean true if equal, otherwise false
167 166
 	 *
@@ -173,7 +172,7 @@ class Quaternion
173 172
 
174 173
 	Quaternion conjugate();
175 174
 	/*------------------------------------------------------
176
-	 * Pre  : 
175
+	 * Pre  :
177 176
 	 * Post : Returns conjugate of this quaternion
178 177
 	 *
179 178
 	 *-- History ------------------------------------------
@@ -184,7 +183,7 @@ class Quaternion
184 183
 
185 184
 	Quaternion scale(vec_t s);
186 185
 	/*------------------------------------------------------
187
-	 * Pre  : 
186
+	 * Pre  :
188 187
 	 * Post : Returns scaled result of this quaternion
189 188
 	 *
190 189
 	 *-- History ------------------------------------------
@@ -195,7 +194,7 @@ class Quaternion
195 194
 
196 195
 	Quaternion inverse();
197 196
 	/*------------------------------------------------------
198
-	 * Pre  : 
197
+	 * Pre  :
199 198
 	 * Post : Returns inverse of this quaternion
200 199
 	 *
201 200
 	 *-- History ------------------------------------------
@@ -206,7 +205,7 @@ class Quaternion
206 205
 
207 206
 	static vec_t dot(Quaternion a, Quaternion b);
208 207
 	/*------------------------------------------------------
209
-	 * Pre  : 
208
+	 * Pre  :
210 209
 	 * Post : Returns dot product of A and B quaternions
211 210
 	 *
212 211
 	 *-- History ------------------------------------------
@@ -217,7 +216,7 @@ class Quaternion
217 216
 
218 217
 	vec_t magnitude();
219 218
 	/*------------------------------------------------------
220
-	 * Pre  : 
219
+	 * Pre  :
221 220
 	 * Post : Returns magnitude this quaternion
222 221
 	 *
223 222
 	 *-- History ------------------------------------------
@@ -228,7 +227,7 @@ class Quaternion
228 227
 
229 228
 	static Quaternion slerp(Quaternion a, Quaternion b, vec_t time);
230 229
 	/*------------------------------------------------------
231
-	 * Pre  : 
230
+	 * Pre  :
232 231
 	 * Post : Interpolates between A and B rotations and
233 232
 	 *        returns resultant quaternion using
234 233
 	 *        spherical linear interpolation:
@@ -248,7 +247,7 @@ class Quaternion
248 247
 
249 248
 	void setIdentity();
250 249
 	/*------------------------------------------------------
251
-	 * Pre  : 
250
+	 * Pre  :
252 251
 	 * Post : Sets this quaternion to identity
253 252
 	 *
254 253
 	 *-- History ------------------------------------------
@@ -259,7 +258,7 @@ class Quaternion
259 258
 
260 259
 	void set(vec_t angle, vec_t x, vec_t y, vec_t z);
261 260
 	/*------------------------------------------------------
262
-	 * Pre  : 
261
+	 * Pre  :
263 262
 	 * Post : Sets this quaternion
264 263
 	 *
265 264
 	 *-- History ------------------------------------------
@@ -270,7 +269,7 @@ class Quaternion
270 269
 
271 270
 	void normalize();
272 271
 	/*------------------------------------------------------
273
-	 * Pre  : 
272
+	 * Pre  :
274 273
 	 * Post : Normalize this quaternion
275 274
 	 *
276 275
 	 *-- History ------------------------------------------
@@ -281,7 +280,7 @@ class Quaternion
281 280
 
282 281
 	void copy(Quaternion q);
283 282
 	/*------------------------------------------------------
284
-	 * Pre  : 
283
+	 * Pre  :
285 284
 	 * Post : Set this quaternion using q
286 285
 	 *
287 286
 	 *-- History ------------------------------------------
@@ -310,7 +309,7 @@ class Quaternion
310 309
 
311 310
 	Quaternion multiply(Quaternion a, Quaternion b);
312 311
 	/*------------------------------------------------------
313
-	 * Pre  : 
312
+	 * Pre  :
314 313
 	 * Post : Multiplies A and B quaternions
315 314
 	 *        returns resultant quaternion
316 315
 	 *
@@ -322,7 +321,7 @@ class Quaternion
322 321
 
323 322
 	Quaternion divide(Quaternion a, Quaternion b);
324 323
 	/*------------------------------------------------------
325
-	 * Pre  : 
324
+	 * Pre  :
326 325
 	 * Post : Divides B from A quaternion
327 326
 	 *        returns quotient quaternion
328 327
 	 *
@@ -334,7 +333,7 @@ class Quaternion
334 333
 
335 334
 	Quaternion add(Quaternion a, Quaternion b);
336 335
 	/*------------------------------------------------------
337
-	 * Pre  : 
336
+	 * Pre  :
338 337
 	 * Post : Adds A and B quaternions
339 338
 	 *        returns resultant quaternion
340 339
 	 *
@@ -346,7 +345,7 @@ class Quaternion
346 345
 
347 346
 	Quaternion subtract(Quaternion a, Quaternion b);
348 347
 	/*------------------------------------------------------
349
-	 * Pre  : 
348
+	 * Pre  :
350 349
 	 * Post : Subtracts B from A quaternion
351 350
 	 *        returns resultant quaternion
352 351
 	 *

+ 14
- 14
include/Render.h View File

@@ -23,20 +23,20 @@
23 23
 #ifndef GUARD__RENDER_MONGOOSE_RENDER_H_
24 24
 #define GUARD__RENDER_MONGOOSE_RENDER_H_
25 25
 
26
-#include "mstl/List.h"
27
-#include "mstl/Vector.h"
28
-#include "hel/Matrix.h"
29
-#include "hel/ViewVolume.h"
30
-#include "Light.h"
31
-#include "World.h"
32
-#include "SkeletalModel.h"
33
-#include "OpenGLMesh.h"
34
-#include "Texture.h"
35
-#include "Camera.h"
36
-#include "GLString.h"
26
+#include <List.h>
27
+#include <Vector.h>
28
+#include <Matrix.h>
29
+#include <ViewVolume.h>
30
+#include <Light.h>
31
+#include <World.h>
32
+#include <SkeletalModel.h>
33
+#include <OpenGLMesh.h>
34
+#include <Texture.h>
35
+#include <Camera.h>
36
+#include <GLString.h>
37 37
 
38 38
 #ifdef USING_EMITTER
39
-#   include "Emitter.h"
39
+#include <Emitter.h>
40 40
 #endif
41 41
 
42 42
 
@@ -50,7 +50,7 @@ public:
50 50
 
51 51
 	~RenderRoom()
52 52
 	{
53
-		// FIXME: hangs when erasing - might be shared pointers somewhere
53
+		//! \fixme Hangs when erasing - might be shared pointers somewhere
54 54
 		//lights.erase();
55 55
 	}
56 56
 
@@ -342,7 +342,7 @@ class Render
342 342
     * Mongoose - Created
343 343
     ------------------------------------------------------*/
344 344
 
345
-	// FIXME: Should be private
345
+	//! \fixme Should be private
346 346
    void drawLoadScreen();
347 347
    /*------------------------------------------------------
348 348
     * Pre  : Texture is init

+ 1
- 1
include/SDLSystem.h View File

@@ -29,7 +29,7 @@
29 29
 #   error "SDLSystem requires -DSDL_INTERFACE"
30 30
 #endif
31 31
 
32
-#include "System.h"
32
+#include <System.h>
33 33
 
34 34
 class SDLSystem : public System
35 35
 {

+ 3
- 3
include/SkeletalModel.h View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file SkeletalModel.h
2
+ * \file include/SkeletalModel.h
3 3
  * \brief This is the factored out skeletal model class
4 4
  *
5 5
  * Defining UNIT_TEST_SKELETALMODEL builds SkeletalModel class as a console unit test
@@ -14,8 +14,8 @@
14 14
 #ifndef GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
15 15
 #define GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
16 16
 
17
-#include "mstl/Vector.h"
18
-#include "hel/math.h"
17
+#include <Vector.h>
18
+#include <MatMath.h>
19 19
 
20 20
 
21 21
 typedef struct bone_tag_s

+ 1
- 1
include/Sound.h View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file Sound.h
2
+ * \file include/Sound.h
3 3
  * \brief This is the audio manager Header
4 4
  *
5 5
  * \author Mongoose

+ 3
- 3
include/System.h View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file System.h
2
+ * \file include/System.h
3 3
  * \brief Mostly defines the interface of System implementations.
4 4
  *
5 5
  * Currently only SDL is used, but there was a GLUT implementation.
@@ -11,8 +11,8 @@
11 11
 #ifndef GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
12 12
 #define GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
13 13
 
14
-#include "mstl/Map.h"
15
-#include "mstl/Vector.h"
14
+#include <Map.h>
15
+#include <Vector.h>
16 16
 
17 17
 //! \todo Replace with unicode compatible key codes
18 18
 #define SYS_MOUSE_LEFT    6000

include/mstl/Tree.h → include/Tree.h View File


include/mstl/Vector.h → include/Vector.h View File


include/hel/Vector3d.h → include/Vector3d.h View File

@@ -1,6 +1,6 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : Hel
5 5
  * Author  : Terry 'Mongoose' Hendrix II
6 6
  * Website : http://www.westga.edu/~stu7440/
@@ -10,14 +10,14 @@
10 10
  * Comments: Math vector
11 11
  *
12 12
  *
13
- *           This file was generated using Mongoose's C++ 
13
+ *           This file was generated using Mongoose's C++
14 14
  *           template generator script.  <stu7440@westga.edu>
15
- * 
15
+ *
16 16
  *-- Test Defines -----------------------------------------------
17
- *           
18
- * UNIT_TEST_VECTOR3D - Builds Vector3d class as a console unit test 
19 17
  *
20
- *-- History ------------------------------------------------ 
18
+ * UNIT_TEST_VECTOR3D - Builds Vector3d class as a console unit test
19
+ *
20
+ *-- History ------------------------------------------------
21 21
  *
22 22
  * 2002.12.24:
23 23
  * Mongoose - Created
@@ -28,7 +28,7 @@
28 28
 #define GUARD__HEL_MONGOOSE_VECTOR3D_H_
29 29
 
30 30
 
31
-#include <hel/math.h>
31
+#include <MatMath.h>
32 32
 
33 33
 class Vector3d
34 34
 {
@@ -40,34 +40,34 @@ class Vector3d
40 40
 
41 41
 	Vector3d();
42 42
 	/*------------------------------------------------------
43
-	 * Pre  : 
43
+	 * Pre  :
44 44
 	 * Post : Constructs an object of Vector3d
45 45
 	 *
46 46
 	 *-- History ------------------------------------------
47 47
 	 *
48
-	 * 2002.12.24: 
48
+	 * 2002.12.24:
49 49
 	 * Mongoose - Created
50 50
 	 ------------------------------------------------------*/
51 51
 
52 52
 	Vector3d(vec3_t v);
53 53
 	/*------------------------------------------------------
54
-	 * Pre  : 
54
+	 * Pre  :
55 55
 	 * Post : Constructs an object of Vector3d
56 56
 	 *
57 57
 	 *-- History ------------------------------------------
58 58
 	 *
59
-	 * 2002.12.24: 
59
+	 * 2002.12.24:
60 60
 	 * Mongoose - Created
61 61
 	 ------------------------------------------------------*/
62 62
 
63 63
 	Vector3d(vec_t x, vec_t y, vec_t z);
64 64
 	/*------------------------------------------------------
65
-	 * Pre  : 
65
+	 * Pre  :
66 66
 	 * Post : Constructs an object of Vector3d
67 67
 	 *
68 68
 	 *-- History ------------------------------------------
69 69
 	 *
70
-	 * 2002.12.24: 
70
+	 * 2002.12.24:
71 71
 	 * Mongoose - Created
72 72
 	 ------------------------------------------------------*/
73 73
 
@@ -78,7 +78,7 @@ class Vector3d
78 78
 	 *
79 79
 	 *-- History ------------------------------------------
80 80
 	 *
81
-	 * 2002.12.24: 
81
+	 * 2002.12.24:
82 82
 	 * Mongoose - Created
83 83
 	 ------------------------------------------------------*/
84 84
 
@@ -89,7 +89,7 @@ class Vector3d
89 89
 
90 90
 	static vec_t dot(const Vector3d &u, const Vector3d &v);
91 91
 	/*------------------------------------------------------
92
-	 * Pre  : 
92
+	 * Pre  :
93 93
 	 * Post : Returns dot product of U and V vectors
94 94
 	 *
95 95
 	 *-- History ------------------------------------------
@@ -100,7 +100,7 @@ class Vector3d
100 100
 
101 101
 	static Vector3d cross(const Vector3d &u, const Vector3d &v);
102 102
 	/*------------------------------------------------------
103
-	 * Pre  : 
103
+	 * Pre  :
104 104
 	 * Post : Returns cross product of U and V vectors
105 105
 	 *
106 106
 	 *-- History ------------------------------------------
@@ -111,7 +111,7 @@ class Vector3d
111 111
 
112 112
 	vec_t magnitude();
113 113
 	/*------------------------------------------------------
114
-	 * Pre  : 
114
+	 * Pre  :
115 115
 	 * Post : Returns magnitude this vector
116 116
 	 *
117 117
 	 *-- History ------------------------------------------
@@ -122,7 +122,7 @@ class Vector3d
122 122
 
123 123
 	Vector3d unit();
124 124
 	/*------------------------------------------------------
125
-	 * Pre  : 
125
+	 * Pre  :
126 126
 	 * Post : Returns normalized copy of this vector
127 127
 	 *
128 128
 	 *-- History ------------------------------------------
@@ -133,7 +133,7 @@ class Vector3d
133 133
 
134 134
 	static Vector3d zeroVector();
135 135
 	/*------------------------------------------------------
136
-	 * Pre  : 
136
+	 * Pre  :
137 137
 	 * Post : Returns the Zero vector <0, 0, 0>
138 138
 	 *
139 139
 	 *-- History ------------------------------------------
@@ -144,7 +144,7 @@ class Vector3d
144 144
 
145 145
 	Vector3d operator +(const Vector3d &v);
146 146
 	/*------------------------------------------------------
147
-	 * Pre  : 
147
+	 * Pre  :
148 148
 	 * Post : Returns a vector = this vector + v
149 149
 	 *
150 150
 	 *-- History ------------------------------------------
@@ -155,7 +155,7 @@ class Vector3d
155 155
 
156 156
 	Vector3d operator -(const Vector3d &v);
157 157
 	/*------------------------------------------------------
158
-	 * Pre  : 
158
+	 * Pre  :
159 159
 	 * Post : Returns a vector = this vector - v
160 160
 	 *
161 161
 	 *-- History ------------------------------------------
@@ -166,7 +166,7 @@ class Vector3d
166 166
 
167 167
 	Vector3d operator -();
168 168
 	/*------------------------------------------------------
169
-	 * Pre  : 
169
+	 * Pre  :
170 170
 	 * Post : Returns a copy of this vector, negated
171 171
 	 *
172 172
 	 *-- History ------------------------------------------
@@ -215,7 +215,7 @@ class Vector3d
215 215
 
216 216
 	void normalize();
217 217
 	/*------------------------------------------------------
218
-	 * Pre  : 
218
+	 * Pre  :
219 219
 	 * Post : Normalizes *this vector
220 220
 	 *
221 221
 	 *-- History ------------------------------------------
@@ -226,7 +226,7 @@ class Vector3d
226 226
 
227 227
 	void zero();
228 228
 	/*------------------------------------------------------
229
-	 * Pre  : 
229
+	 * Pre  :
230 230
 	 * Post :This is set to the Zero vector <0, 0, 0>
231 231
 	 *
232 232
 	 *-- History ------------------------------------------
@@ -237,7 +237,7 @@ class Vector3d
237 237
 
238 238
 	void operator =(const Vector3d &v);
239 239
 	/*------------------------------------------------------
240
-	 * Pre  : 
240
+	 * Pre  :
241 241
 	 * Post : this = v, values are assigned   =)
242 242
 	 *
243 243
 	 *-- History ------------------------------------------
@@ -248,7 +248,7 @@ class Vector3d
248 248
 
249 249
 	void operator +=(const Vector3d &v);
250 250
 	/*------------------------------------------------------
251
-	 * Pre  : 
251
+	 * Pre  :
252 252
 	 * Post : this += v, values are sumed, assigned   =)
253 253
 	 *
254 254
 	 *-- History ------------------------------------------
@@ -259,7 +259,7 @@ class Vector3d
259 259
 
260 260
 	void operator -=(const Vector3d &v);
261 261
 	/*------------------------------------------------------
262
-	 * Pre  : 
262
+	 * Pre  :
263 263
 	 * Post : this -= v, values are diffed, assigned   =)
264 264
 	 *
265 265
 	 *-- History ------------------------------------------
@@ -270,7 +270,7 @@ class Vector3d
270 270
 
271 271
 	void operator *=(vec_t s);
272 272
 	/*------------------------------------------------------
273
-	 * Pre  : 
273
+	 * Pre  :
274 274
 	 * Post : this *= s, values are scaled, assigned   =)
275 275
 	 *
276 276
 	 *-- History ------------------------------------------

include/hel/ViewVolume.h → include/ViewVolume.h View File

@@ -1,6 +1,6 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : hel
5 5
  * Author  : Terry 'Mongoose' Hendrix II
6 6
  * Website : http://www.westga.edu/~stu7440/
@@ -10,14 +10,14 @@
10 10
  * Comments: This is the viewing volume for culling use
11 11
  *
12 12
  *
13
- *           This file was generated using Mongoose's C++ 
13
+ *           This file was generated using Mongoose's C++
14 14
  *           template generator script.  <stu7440@westga.edu>
15
- * 
15
+ *
16 16
  *-- Test Defines -----------------------------------------------
17
- *           
18
- * UNIT_TEST_VIEWVOLUME - Builds ViewVolume class as a console unit test 
19 17
  *
20
- *-- History ------------------------------------------------ 
18
+ * UNIT_TEST_VIEWVOLUME - Builds ViewVolume class as a console unit test
19
+ *
20
+ *-- History ------------------------------------------------
21 21
  *
22 22
  * 2002.12.15:
23 23
  * Mongoose - Created
@@ -27,8 +27,8 @@
27 27
 #ifndef GUARD__HEL_MONGOOSE_VIEWVOLUME_H_
28 28
 #define GUARD__HEL_MONGOOSE_VIEWVOLUME_H_
29 29
 
30
-#include <hel/Matrix.h>
31
-#include <hel/BoundingVolume.h>
30
+#include <Matrix.h>
31
+#include <BoundingVolume.h>
32 32
 
33 33
 class ViewVolume
34 34
 {
@@ -59,12 +59,12 @@ class ViewVolume
59 59
 
60 60
 	ViewVolume();
61 61
 	/*------------------------------------------------------
62
-	 * Pre  : 
62
+	 * Pre  :
63 63
 	 * Post : Constructs an object of ViewVolume
64 64
 	 *
65 65
 	 *-- History ------------------------------------------
66 66
 	 *
67
-	 * 2002.12.15: 
67
+	 * 2002.12.15:
68 68
 	 * Mongoose - Created
69 69
 	 ------------------------------------------------------*/
70 70
 
@@ -75,7 +75,7 @@ class ViewVolume
75 75
 	 *
76 76
 	 *-- History ------------------------------------------
77 77
 	 *
78
-	 * 2002.12.15: 
78
+	 * 2002.12.15:
79 79
 	 * Mongoose - Created
80 80
 	 ------------------------------------------------------*/
81 81
 
@@ -86,48 +86,48 @@ class ViewVolume
86 86
 
87 87
 	bool isBoundingVolumeInFrustum(BoundingVolume bvol);
88 88
 	/*------------------------------------------------------
89
-	 * Pre  : 
90
-	 * Post : Returns true if frustum contains the given 
89
+	 * Pre  :
90
+	 * Post : Returns true if frustum contains the given
91 91
 	 *        bounding volume
92 92
 	 *
93 93
 	 *-- History ------------------------------------------
94 94
 	 *
95
-	 * 2002.12.15: 
95
+	 * 2002.12.15:
96 96
 	 * Mongoose - Created
97 97
 	 ------------------------------------------------------*/
98 98
 
99 99
 	bool isBoundingSphereInFrustum(BoundingSphere bvol);
100 100
 	/*------------------------------------------------------
101
-	 * Pre  : 
102
-	 * Post : Returns true if frustum contains the given 
101
+	 * Pre  :
102
+	 * Post : Returns true if frustum contains the given
103 103
 	 *        bounding volume
104 104
 	 *
105 105
 	 *-- History ------------------------------------------
106 106
 	 *
107
-	 * 2002.12.15: 
107
+	 * 2002.12.15:
108 108
 	 * Mongoose - Created
109 109
 	 ------------------------------------------------------*/
110 110
 
111 111
 	bool isBoundingBoxInFrustum(BoundingBox bvol);
112 112
 	/*------------------------------------------------------
113
-	 * Pre  : 
114
-	 * Post : Returns true if frustum contains the given 
113
+	 * Pre  :
114
+	 * Post : Returns true if frustum contains the given
115 115
 	 *        bounding volume
116 116
 	 *
117 117
 	 *-- History ------------------------------------------
118 118
 	 *
119
-	 * 2002.12.15: 
119
+	 * 2002.12.15:
120 120
 	 * Mongoose - Created
121 121
 	 ------------------------------------------------------*/
122 122
 
123 123
 	bool isPointInFrustum(vec_t x, vec_t y, vec_t z);
124 124
 	/*------------------------------------------------------
125
-	 * Pre  : 
126
-	 * Post : 
125
+	 * Pre  :
126
+	 * Post :
127 127
 	 *
128 128
 	 *-- History ------------------------------------------
129 129
 	 *
130
-	 * 2002.12.15: 
130
+	 * 2002.12.15:
131 131
 	 * Mongoose - Created
132 132
 	 ------------------------------------------------------*/
133 133
 
@@ -138,7 +138,7 @@ class ViewVolume
138 138
 	 *
139 139
 	 *-- History ------------------------------------------
140 140
 	 *
141
-	 * 2002.12.15: 
141
+	 * 2002.12.15:
142 142
 	 * Mongoose - Created
143 143
 	 ------------------------------------------------------*/
144 144
 
@@ -149,19 +149,19 @@ class ViewVolume
149 149
 	 *
150 150
 	 *-- History ------------------------------------------
151 151
 	 *
152
-	 * 2002.12.15: 
152
+	 * 2002.12.15:
153 153
 	 * Mongoose - Created
154 154
 	 ------------------------------------------------------*/
155 155
 
156 156
 	vec_t getDistToSphereFromNear(vec_t x, vec_t y, vec_t z, vec_t radius);
157 157
 	/*------------------------------------------------------
158 158
 	 * Pre  : Abstract sphere is valid
159
-	 * Post : Returns distance to abstract sphere 
159
+	 * Post : Returns distance to abstract sphere
160 160
 	 *        bounding volume
161 161
 	 *
162 162
 	 *-- History ------------------------------------------
163 163
 	 *
164
-	 * 2002.12.15: 
164
+	 * 2002.12.15:
165 165
 	 * Mongoose - Created
166 166
 	 ------------------------------------------------------*/
167 167
 
@@ -173,7 +173,7 @@ class ViewVolume
173 173
 	 *
174 174
 	 *-- History ------------------------------------------
175 175
 	 *
176
-	 * 2002.12.15: 
176
+	 * 2002.12.15:
177 177
 	 * Mongoose - Created
178 178
 	 ------------------------------------------------------*/
179 179
 
@@ -190,7 +190,7 @@ class ViewVolume
190 190
 
191 191
 	void getPlane(ViewVolumeSide p, vec4_t plane);
192 192
 	/*------------------------------------------------------
193
-	 * Pre  : 
193
+	 * Pre  :
194 194
 	 * Post : Get a copy of a given plane in view volume
195 195
 	 *
196 196
 	 *-- History ------------------------------------------
@@ -199,7 +199,7 @@ class ViewVolume
199 199
 	 * Mongoose - Created
200 200
 	 ------------------------------------------------------*/
201 201
 
202
-	
202
+
203 203
 	////////////////////////////////////////////////////////////
204 204
 	// Public Mutators
205 205
 	////////////////////////////////////////////////////////////

+ 9
- 8
include/World.h View File

@@ -30,12 +30,12 @@
30 30
 #define BAD_BLOOD  // For temp rendering use
31 31
 
32 32
 #ifdef BAD_BLOOD
33
-#   include "SkeletalModel.h"
33
+#include <SkeletalModel.h>
34 34
 #endif
35 35
 
36
-#include "mstl/List.h"
37
-#include "mstl/Vector.h"
38
-#include "hel/math.h"
36
+#include <List.h>
37
+#include <Vector.h>
38
+#include <MatMath.h>
39 39
 
40 40
 
41 41
 // Mirrors TombRaider class' room flags really
@@ -103,9 +103,10 @@ typedef struct sprite_seq_s
103 103
 } sprite_seq_t;
104 104
 
105 105
 
106
-// FIXME: For now shaders are textures on tex objects
107
-//        and materials on color objects.  If -1
108
-//        then it doesn't have that information yet.
106
+/*! \fixme For now shaders are textures on tex objects
107
+ * and materials on color objects. If -1
108
+ * then it doesn't have that information yet.
109
+ */
109 110
 
110 111
 typedef struct texture_tri_s
111 112
 {
@@ -210,7 +211,7 @@ typedef struct sector_s
210 211
 
211 212
 } sector_t;
212 213
 
213
-// FIXME: No room mesh list or sprites and etc
214
+//! \fixme No room mesh list or sprites and etc
214 215
 typedef struct room_mesh_s
215 216
 {
216 217
 	Vector<int> adjacentRooms;

+ 1
- 1
src/Camera.cpp View File

@@ -35,7 +35,7 @@
35 35
 #include <stdio.h>
36 36
 #include <math.h>
37 37
 
38
-#include <hel/math.h>
38
+#include <MatMath.h>
39 39
 #include <Camera.h>
40 40
 
41 41
 #ifdef DEBUG_MEMORY

+ 1
- 1
src/GLString.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file GLString.cpp
2
+ * \file src/GLString.cpp
3 3
  * \brief Open GL rendering font/string class
4 4
  *
5 5
  * \author Mongoose

src/hel/math.cpp → src/MatMath.cpp View File

@@ -3,9 +3,9 @@
3 3
 #include <stdlib.h>
4 4
 #include <math.h>
5 5
 
6
-#include <hel/math.h>
7
-#include <hel/Vector3d.h>
8
-#include <hel/Matrix.h>
6
+#include <MatMath.h>
7
+#include <Vector3d.h>
8
+#include <Matrix.h>
9 9
 
10 10
 #define COMPUTE
11 11
 

src/hel/Matrix.cpp → src/Matrix.cpp View File

@@ -22,7 +22,7 @@
22 22
 #include <stdio.h>
23 23
 #include <math.h>
24 24
 
25
-#include <hel/Matrix.h>
25
+#include <Matrix.h>
26 26
 
27 27
 
28 28
 ////////////////////////////////////////////////////////////

+ 1
- 1
src/Network.cpp View File

@@ -444,7 +444,7 @@ int Network::runServer()
444 444
 			}
445 445
 		}
446 446
 
447
-		// FIXME: Combine with above, duh
447
+		//! \fixme Combine with above, duh
448 448
 		// 3. Send to network layer
449 449
 		if (gClients[i].frameExpected == f.header)
450 450
 		{

+ 3
- 3
src/OpenGLMesh.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file OpenGLMesh.cpp
2
+ * \file src/OpenGLMesh.cpp
3 3
  * \brief OpenGL Mesh
4 4
  *
5 5
  * \author Mongoose
@@ -248,7 +248,7 @@ void OpenGLMesh::drawSolid()
248 248
 
249 249
 		glPointSize(1.0f);
250 250
 
251
-		return; // FIXME
251
+		return; //! \fixme
252 252
 
253 253
 		for (j = 0; j < mQuads[i].num_quads; ++j)
254 254
 		{
@@ -532,7 +532,7 @@ void OpenGLMesh::bufferTriangles(unsigned int count,
532 532
 	mTriangleFlags = flags;
533 533
 	mTriangleTexCoordArray = texCoords;
534 534
 
535
-	// FIXME: sortTrianglesByTexture();
535
+	//! \fixme sortTrianglesByTexture();
536 536
 }
537 537
 
538 538
 

+ 15
- 14
src/OpenRaider.cpp View File

@@ -137,10 +137,11 @@ OpenRaider::OpenRaider() : SDLSystem()
137 137
 
138 138
 OpenRaider::~OpenRaider()
139 139
 {
140
-	// Mongoose 2002.01.02, FIXME GL call to critical section,
141
-	//   needs mutex really
140
+	/*! \fixme GL call to critical section,
141
+	 * needs mutex really -- Mongoose 2002.01.02
142
+     */
142 143
 	m_render.setMode(Render::modeDisabled);
143
-	//sleep(1); // Why should we sleep here? -- xythobuz
144
+	sleep(1);
144 145
 
145 146
 	printf("Removing World...\n");
146 147
 	gWorld.destroy();
@@ -1141,10 +1142,11 @@ void OpenRaider::loadLevel(char *mapname)
1141 1142
 	display_memory_usage();
1142 1143
 #endif
1143 1144
 
1144
-	// Mongoose 2002.01.02, FIXME GL call to critical section,
1145
-	//   needs mutex really
1145
+	/*! \fixme GL call to critical section,
1146
+	 * needs mutex really -- Mongoose 2002.01.02
1147
+     */
1146 1148
 	m_render.setMode(Render::modeDisabled);
1147
-	//sleep(2);
1149
+	sleep(1);
1148 1150
 
1149 1151
 	// Draw game, level is loaded
1150 1152
 	m_render.setMode(Render::modeVertexLight);
@@ -1608,7 +1610,7 @@ void OpenRaider::processMoveable(int index, int i, int *ent,
1608 1610
 		}
1609 1611
 	}
1610 1612
 
1611
-	// FIXME: Check here and see if we already have one for object_id later
1613
+	//! \fixme Check here and see if we already have one for object_id later
1612 1614
 	// if (gWorld.isCachedSkeletalModel(moveable[index].object_id))
1613 1615
 	// {
1614 1616
 	//   thing->modelId = m_render.add(sModel);
@@ -1688,8 +1690,7 @@ void OpenRaider::processMoveable(int index, int i, int *ent,
1688 1690
 		return;
1689 1691
 	}
1690 1692
 
1691
-	// FIXME: Might be better UID for each model, but this seems
1692
-	//        to work well
1693
+	//! \fixme Might be better UID for each model, but this seems to work well
1693 1694
 	j = object_id;
1694 1695
 
1695 1696
 	// We only want one copy of the skeletal model in memory
@@ -2023,7 +2024,7 @@ void OpenRaider::processModel(int index)
2023 2024
 	// Assert common sense
2024 2025
 	if (index < 0 || !m_tombraider.isMeshValid(index))
2025 2026
 	{
2026
-		// FIXME: allow sparse lists with matching ids instead?
2027
+		//! \fixme allow sparse lists with matching ids instead?
2027 2028
 		gWorld.addMesh(NULL); // Filler, to make meshes array ids align
2028 2029
 		printf("x");
2029 2030
 		fflush(stdout);
@@ -2038,7 +2039,7 @@ void OpenRaider::processModel(int index)
2038 2039
 	// Mongoose 2002.08.30, Testing support for 'shootable' models ( traceable )
2039 2040
 	m_tombraider.getMeshCollisionInfo(index, mesh->center, &mesh->radius);
2040 2041
 
2041
-	// FIXME: Arrays don't work either  =)
2042
+	//! \fixme Arrays don't work either  =)
2042 2043
 	// Mesh geometery, colors, etc
2043 2044
 	m_tombraider.getMeshVertexArrays(index,
2044 2045
 												&mesh->vertexCount, &mesh->vertices,
@@ -2266,7 +2267,7 @@ void OpenRaider::processRoom(int index)
2266 2267
 	float portalVertices[12];
2267 2268
 	count = m_tombraider.getRoomPortalCount(index);
2268 2269
 
2269
-	// FIXME: OR wrongly uses a cached adj room list for rendering vis
2270
+	//! \fixme OR wrongly uses a cached adj room list for rendering vis
2270 2271
 	r_mesh->adjacentRooms.reserve(count + 1);
2271 2272
 	r_mesh->adjacentRooms.setError(-1);
2272 2273
 
@@ -2304,7 +2305,7 @@ void OpenRaider::processRoom(int index)
2304 2305
 
2305 2306
 	// Physics/gameplay use /////////////////////////////
2306 2307
 
2307
-	// FIXME: Use more of sector structure, boxes, and floordata
2308
+	//! \fixme Use more of sector structure, boxes, and floordata
2308 2309
 
2309 2310
 	// List of sectors in this room
2310 2311
 	unsigned int sectorFlags;
@@ -2340,7 +2341,7 @@ void OpenRaider::processRoom(int index)
2340 2341
 	r_mesh->boxes.reserve(count);
2341 2342
 	r_mesh->boxes.setError(0x0);
2342 2343
 
2343
-	// FIXME: Only to be done only on room[0]?  I don't think so...
2344
+	//! fixme Only to be done only on room[0]?  I don't think so...
2344 2345
 	for (i = 0; !index && i < count; ++i)
2345 2346
 	{
2346 2347
 		box_t *box = new box_t;

+ 1
- 1
src/Particle.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file Particle.cpp
2
+ * \file src/Particle.cpp
3 3
  * \brief Particle system base implementation
4 4
  *
5 5
  * \author Mongoose

src/hel/Quaternion.cpp → src/Quaternion.cpp View File

@@ -21,7 +21,7 @@
21 21
 
22 22
 #include <math.h>
23 23
 
24
-#include <hel/Quaternion.h>
24
+#include <Quaternion.h>
25 25
 
26 26
 
27 27
 ////////////////////////////////////////////////////////////

+ 8
- 7
src/Render.cpp View File

@@ -779,7 +779,7 @@ void Render::Display()
779 779
 		return;
780 780
 		break;
781 781
 	case Render::modeLoadScreen:
782
-		// Mongoose 2002.01.01, FIXME entry for seperate main drawing method
782
+		//! \fixme entry for seperate main drawing method -- Mongoose 2002.01.01
783 783
 		drawLoadScreen();
784 784
 		return;
785 785
 	default:
@@ -1123,7 +1123,8 @@ void Render::buildRoomRenderList(RenderRoom *rRoom)
1123 1123
 	if (!rRoom || !rRoom->room)
1124 1124
 		return;
1125 1125
 
1126
-	// Must be visible, FIXME: Add depth sorting here - remove multipass
1126
+	// Must be visible
1127
+    //! \fixme Add depth sorting here - remove multipass
1127 1128
 	if (!isVisible(rRoom->room->bbox_min, rRoom->room->bbox_max))
1128 1129
 		return;
1129 1130
 
@@ -1218,7 +1219,7 @@ void Render::drawLoadScreen()
1218 1219
 		return;
1219 1220
 
1220 1221
 	// Mongoose 2002.01.01, Rendered while game is loading...
1221
-	//   FIXME seperate logo/particle coor later
1222
+	//! \fixme seperate logo/particle coor later
1222 1223
 	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
1223 1224
 	glLoadIdentity();
1224 1225
 
@@ -1585,7 +1586,7 @@ void draw_bbox(vec3_t min, vec3_t max, bool draw_points)
1585 1586
 	glPointSize(4.0);
1586 1587
 	//glLineWidth(1.25);
1587 1588
 
1588
-	//FIXME: Need to make custom color key for this
1589
+	//! \fixme Need to make custom color key for this
1589 1590
 	glColor3fv(RED);
1590 1591
 
1591 1592
 	glBegin(GL_POINTS);
@@ -1662,7 +1663,7 @@ void draw_bbox_color(vec3_t min, vec3_t max, bool draw_points,
1662 1663
 	glPointSize(4.0);
1663 1664
 	//glLineWidth(1.25);
1664 1665
 
1665
-	//FIXME: Need to make custom color key for this
1666
+	//! \fixme Need to make custom color key for this
1666 1667
 	glColor3fv(c1);
1667 1668
 
1668 1669
 	glBegin(GL_POINTS);
@@ -2033,7 +2034,7 @@ void Render::drawModelMesh(model_mesh_t *r_mesh, RenderMeshType type)
2033 2034
 
2034 2035
 	// If they pass NULL structs let it hang up - this is tmp
2035 2036
 
2036
-	// FIXME: Duh, vis tests need to be put back
2037
+	//! \fixme Duh, vis tests need to be put back
2037 2038
 	//if (!isVisible(r_mesh->center,	r_mesh->radius, r_mesh->bbox))
2038 2039
 	//{
2039 2040
 	//	 return;
@@ -2082,7 +2083,7 @@ void Render::drawModelMesh(model_mesh_t *r_mesh, RenderMeshType type)
2082 2083
 #endif
2083 2084
 
2084 2085
 
2085
-	// Mongoose 2002.01.08, FIXME 'AMBIENT'
2086
+	//! \fixme 'AMBIENT' -- Mongoose 2002.01.08
2086 2087
 	glColor3fv(WHITE);
2087 2088
 
2088 2089
 	if (mMode == modeWireframe)

+ 10
- 8
src/SDLSystem.cpp View File

@@ -171,7 +171,7 @@ void SDLSystem::glPrintf2d(float x, float y, char *string)
171 171
 {
172 172
 #ifdef HAVE_SDL_TTF
173 173
 #   ifdef FIXME
174
-	// FIXME: Filler
174
+	//! \fixme Filler
175 175
 	glBindTexture(GL_TEXTURE_2D, texture);
176 176
 	glBegin(GL_TRIANGLE_STRIP);
177 177
 	glTexCoord2f(texMinX, texMinY); glVertex2i(x,   y  );
@@ -187,8 +187,9 @@ void SDLSystem::glPrintf2d(float x, float y, char *string)
187 187
 void SDLSystem::glPrintf3d(float x, float y, float z, char *string)
188 188
 {
189 189
 #ifdef HAVE_SDL_TTF_FIXME
190
-	// FIXME: Filler
191
-	// FIXME: Billboarding here requires a yaw jackass   =)
190
+	/*! \fixme Filler
191
+	 * Billboarding here requires a yaw jackass =)
192
+     */
192 193
 	glBindTexture(GL_TEXTURE_2D, texture);
193 194
 	glBegin(GL_TRIANGLE_STRIP);
194 195
 	glTexCoord2f(texMinX, texMinY); glVertex2i(x,   y  );
@@ -364,11 +365,11 @@ void SDLSystem::runGame()
364 365
 
365 366
 				if (event.button.state == SDL_PRESSED)
366 367
 				{
367
-					handleKeyPressEvent(btn, 0); // FIXME: mod not used
368
+					handleKeyPressEvent(btn, 0); //! \fixme mod not used
368 369
 				}
369 370
 				else
370 371
 				{
371
-					handleKeyReleaseEvent(btn, 0); // FIXME: mod not used
372
+					handleKeyReleaseEvent(btn, 0); //! \fixme mod not used
372 373
 				}
373 374
 				break;
374 375
 			case SDL_KEYUP:
@@ -504,9 +505,10 @@ void SDLSystem::runGame()
504 505
 					}
505 506
 				}
506 507
 #else
507
-				// FIXME: Avoid passing modifers as a key, since the
508
-				// consoles using this expect text characters, add unicode
509
-				// support later when they're able to handle it
508
+				/*! \fixme Avoid passing modifers as a key, since the
509
+				 * consoles using this expect text characters, add unicode
510
+				 * support later when they're able to handle it
511
+                 */
510 512
 				if (key > 255 && key < 1000)
511 513
 				{
512 514
 					key = 0;

+ 1
- 1
src/Sound.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file Sound.cpp
2
+ * \file src/Sound.cpp
3 3
  * \brief This is the audio manager Implementation
4 4
  *
5 5
  * \author Mongoose

+ 1
- 1
src/System.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file System.cpp
2
+ * \file src/System.cpp
3 3
  * \brief Mostly defines the interface of System implementations.
4 4
  *
5 5
  * Currently only SDL is used, but there was a GLUT implementation.

+ 105
- 105
src/TombRaider.cpp View File

@@ -426,7 +426,7 @@ int TombRaider::checkMime(char *filename)
426 426
      return -1;
427 427
    }
428 428
 
429
-	/* FIXME: Endianess */
429
+	//! \fixme Endianess
430 430
    fread(&version, sizeof(version), 1, f);
431 431
 	fclose(f);
432 432
 
@@ -474,7 +474,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
474 474
 	mReset = false;
475 475
 
476 476
    Fread(&mPakVersion, sizeof(mPakVersion), 1, f);
477
-   //FIXME: endian
477
+   //! \fixme endian
478 478
 
479 479
    printDebug("Load", "mPakVersion = %u", mPakVersion);
480 480
 
@@ -776,7 +776,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
776 776
 
777 777
      if (mEngineVersion != TR_VERSION_1)
778 778
      {
779
-       //FIXME: need endian checking here
779
+       //! \fixme need endian checking here
780 780
        Fread(_textile16, sizeof(tr2_textile16_t), _num_textiles, f);
781 781
        printDebug("Load", "Read in 16bit texture tiles");
782 782
      }
@@ -790,7 +790,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
790 790
    printDebug("Load", "_unknown_t = 0x%x", _unknown_t);
791 791
 
792 792
    /* Read raw room data */
793
-   //FIXME: needs endian checking
793
+   //! \fixme needs endian checking
794 794
    Fread(&_num_rooms, sizeof(_num_rooms), 1, f);
795 795
    printDebug("Load", "_num_rooms = %i", _num_rooms);
796 796
 
@@ -806,7 +806,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
806 806
 		}
807 807
 
808 808
      /* Read RoomInfo */
809
-     //FIXME: endian check needed
809
+     //! \fixme endian check needed
810 810
      Fread(&_rooms[i].info, sizeof(tr2_room_info_t), 1, f);
811 811
 
812 812
      printDebug("Load", "_rooms[%i].info =\n { x=%i, z=%i, yt=%i, yb=%i}",
@@ -825,7 +825,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
825 825
 
826 826
      /* Identify vertices */
827 827
      data_offset = 0;
828
-     //FIXME: endian
828
+     //! \fixme endian
829 829
      _rooms[i].room_data.num_vertices = *(short *)(_rooms[i].data);
830 830
 
831 831
      data_offset += sizeof(_rooms[0].room_data.num_vertices);
@@ -865,13 +865,13 @@ int TombRaider::Load(char *filename, void (*percent)(int))
865 865
 					  _rooms[i].data + data_offset, data_size);
866 866
        }
867 867
 
868
-       //FIXME: endian conversions for verts needed
868
+       //! \fixme endian conversions for verts needed
869 869
      }
870 870
 
871 871
      data_offset += data_size;
872 872
 
873 873
      /* identify rectangles */
874
-     //FIXME: endian conversion
874
+     //! \fixme endian conversion
875 875
      _rooms[i].room_data.num_rectangles =
876 876
        *(short *)(_rooms[i].data + data_offset);
877 877
 
@@ -899,7 +899,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
899 899
 				 _rooms[i].room_data.rectangles[j].texture &= 0x7fff;
900 900
 			 }
901 901
        }
902
-       //FIXME: endian conversion
902
+       //! \fixme endian conversion
903 903
      }
904 904
 
905 905
      data_offset += data_size;
@@ -907,7 +907,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
907 907
      /* Identify triangles */
908 908
      _rooms[i].room_data.num_triangles =
909 909
        *(short *)(_rooms[i].data + data_offset);
910
-     //FIXME: endian
910
+     //! \fixme endian
911 911
 
912 912
      data_offset += sizeof(_rooms[0].room_data.num_triangles);
913 913
      data_size = _rooms[i].room_data.num_triangles * sizeof(tr2_tri_t);
@@ -933,7 +933,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
933 933
 			 {
934 934
 				 _rooms[i].room_data.triangles[j].texture &= 0x7fff;
935 935
 			 }
936
-			 //FIXME: endian
936
+			 //! \fixme endian
937 937
        }
938 938
      }
939 939
 
@@ -942,7 +942,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
942 942
       /* Identify sprites */
943 943
       _rooms[i].room_data.num_sprites =
944 944
 			*(short *)(_rooms[i].data + data_offset);
945
-      //FIXME: endian
945
+      //! \fixme endian
946 946
 
947 947
       data_offset += sizeof(_rooms[0].room_data.num_sprites);
948 948
       data_size = _rooms[i].room_data.num_sprites * sizeof(tr2_room_sprite_t);
@@ -969,7 +969,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
969 969
 				}
970 970
 			}
971 971
 
972
-			//FIXME: endian
972
+			//! \fixme endian
973 973
       }
974 974
 
975 975
       /* Free the raw room data */
@@ -977,7 +977,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
977 977
       _rooms[i].data = NULL;
978 978
 
979 979
       /* Read door info */
980
-      //FIXME: endian
980
+      //! \fixme endian
981 981
       Fread(&_rooms[i].num_portals, sizeof(_rooms[0].num_portals), 1, f);
982 982
 
983 983
       printDebug("Load", "_rooms[%i].num_portals = %i",
@@ -990,10 +990,10 @@ int TombRaider::Load(char *filename, void (*percent)(int))
990 990
 
991 991
       Fread(_rooms[i].portals, sizeof(tr2_room_portal_t),
992 992
 	    _rooms[i].num_portals, f);
993
-      //FIXME: endian
993
+      //! \fixme endian
994 994
 
995 995
       /* Read sector info */
996
-      //FIXME: endian
996
+      //! \fixme endian
997 997
       Fread(&_rooms[i].num_zsectors, sizeof(_rooms[0].num_zsectors), 1, f);
998 998
       Fread(&_rooms[i].num_xsectors, sizeof(_rooms[0].num_xsectors), 1, f);
999 999
 
@@ -1014,7 +1014,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1014 1014
 
1015 1015
       Fread(_rooms[i].sector_list, sizeof(tr2_room_sector_t),
1016 1016
 	    _rooms[i].num_zsectors * _rooms[i].num_xsectors, f);
1017
-      //FIXME: endian
1017
+      //! \fixme endian
1018 1018
 
1019 1019
       printDebug("Load", "Read %u room sectors",
1020 1020
 		 _rooms[i].num_zsectors * _rooms[i].num_xsectors);
@@ -1045,7 +1045,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1045 1045
       }
1046 1046
 
1047 1047
       /* Read room lighting info */
1048
-       //FIXME: endian
1048
+       //! \fixme endian
1049 1049
       Fread(&_rooms[i].num_lights, sizeof(_rooms[i].num_lights), 1, f);
1050 1050
 
1051 1051
       printDebug("Load", "_rooms[%i].num_lights = %u",
@@ -1106,11 +1106,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1106 1106
 						_rooms[i].num_lights, f);
1107 1107
 			}
1108 1108
       }
1109
-      //FIXME: endian
1109
+      //! \fixme endian
1110 1110
 
1111 1111
       /* Read Static Mesh Data */
1112 1112
       Fread(&_rooms[i].num_static_meshes, sizeof(unsigned short), 1, f);
1113
-      //FIXME: endian
1113
+      //! \fixme endian
1114 1114
 
1115 1115
       printDebug("Load", "_rooms[%i].num_static_meshes = %u",
1116 1116
 					  i, _rooms[i].num_static_meshes);
@@ -1142,16 +1142,16 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1142 1142
 						_rooms[i].num_static_meshes, f);
1143 1143
 			}
1144 1144
       }
1145
-      //FIXME: endian
1145
+      //! \fixme endian
1146 1146
 
1147 1147
       Fread(&_rooms[i].alternate_room, sizeof(short), 1, f);
1148
-      //FIXME: endian
1148
+      //! \fixme endian
1149 1149
 
1150 1150
       printDebug("Load", "_rooms[%i].alternate_room = %i",
1151 1151
 		 i, _rooms[i].alternate_room);
1152 1152
 
1153 1153
       Fread(&_rooms[i].flags, sizeof(short), 1, f);
1154
-      //FIXME: endian
1154
+      //! \fixme endian
1155 1155
 
1156 1156
       printDebug("Load", "_rooms[%i].flags = 0x%x",
1157 1157
 					  i, _rooms[i].flags);
@@ -1188,12 +1188,12 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1188 1188
    {
1189 1189
      _floor_data = new unsigned short[_num_floor_data];
1190 1190
      Fread(_floor_data, sizeof(short), _num_floor_data, f);
1191
-     //FIXME: endian
1191
+     //! \fixme endian
1192 1192
    }
1193 1193
 
1194 1194
    /* Read mesh data */
1195 1195
    Fread(&num_mesh_data_words, sizeof(num_mesh_data_words), 1, f);
1196
-   //FIXME: endian
1196
+   //! \fixme endian
1197 1197
 
1198 1198
    printDebug("Load", "num_mesh_data_words = %u", num_mesh_data_words);
1199 1199
 
@@ -1205,13 +1205,13 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1205 1205
 
1206 1206
    /* Read mesh pointers */
1207 1207
    Fread(&num_mesh_pointers, sizeof(num_mesh_pointers), 1, f);
1208
-   //FIXME: endian
1208
+   //! \fixme endian
1209 1209
 
1210 1210
    printDebug("Load", "num_mesh_pointers = %u", num_mesh_pointers);
1211 1211
 
1212 1212
    mesh_pointer_list = new unsigned int[num_mesh_pointers];
1213 1213
    Fread(mesh_pointer_list, sizeof(unsigned int), num_mesh_pointers, f);
1214
-   //FIXME: endian
1214
+   //! \fixme endian
1215 1215
 
1216 1216
    printDebug("Load", "Read mesh_pointer_list");
1217 1217
 
@@ -1222,7 +1222,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1222 1222
 
1223 1223
    /* Read animations */
1224 1224
    Fread(&_num_animations, sizeof(_num_animations), 1, f);
1225
-   //FIXME: endian
1225
+   //! \fixme endian
1226 1226
 
1227 1227
    printDebug("Load", "_num_animations = %u", _num_animations);
1228 1228
 
@@ -1264,11 +1264,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1264 1264
          Fread(_animations, sizeof(tr2_animation_t), _num_animations, f);
1265 1265
      }
1266 1266
    }
1267
-   //FIXME: endian
1267
+   //! \fixme endian
1268 1268
 
1269 1269
    /* Read state changes */
1270 1270
    Fread(&_num_state_changes, sizeof(_num_state_changes), 1, f);
1271
-   //FIXME: endian
1271
+   //! \fixme endian
1272 1272
 
1273 1273
 
1274 1274
    if (percent)
@@ -1282,11 +1282,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1282 1282
 
1283 1283
      Fread(_state_changes, sizeof(tr2_state_change_t), _num_state_changes, f);
1284 1284
    }
1285
-   //FIXME: endian
1285
+   //! \fixme endian
1286 1286
 
1287 1287
    /* Read AnimDispatches */
1288 1288
    Fread(&_num_anim_dispatches, sizeof(_num_anim_dispatches), 1, f);
1289
-   //FIXME: endian
1289
+   //! \fixme endian
1290 1290
 
1291 1291
    printDebug("Load", "_num_anim_dispatches = %u", _num_anim_dispatches);
1292 1292
 
@@ -1298,11 +1298,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1298 1298
       Fread(_anim_dispatches, sizeof(tr2_anim_dispatch_t),
1299 1299
 	    _num_anim_dispatches, f);
1300 1300
    }
1301
-   //FIXME: endian
1301
+   //! \fixme endian
1302 1302
 
1303 1303
    /* Read anim commands */
1304 1304
    Fread(&_num_anim_commands, sizeof(_num_anim_commands), 1, f);
1305
-   //FIXME: endian
1305
+   //! \fixme endian
1306 1306
 
1307 1307
    printDebug("Load", "_num_anim_commands = %u", _num_anim_commands);
1308 1308
 
@@ -1313,11 +1313,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1313 1313
      _anim_commands = new tr2_anim_command_t[_num_anim_commands];
1314 1314
      Fread(_anim_commands, sizeof(tr2_anim_command_t), _num_anim_commands, f);
1315 1315
    }
1316
-   //FIXME: endian
1316
+   //! \fixme endian
1317 1317
 
1318 1318
    /* Read MeshTrees */
1319 1319
    Fread(&_num_mesh_trees, sizeof(_num_mesh_trees), 1, f);
1320
-   //FIXME: endian
1320
+   //! \fixme endian
1321 1321
 
1322 1322
    printDebug("Load", "_num_mesh_trees = %u", _num_mesh_trees);
1323 1323
 
@@ -1328,11 +1328,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1328 1328
      _mesh_trees = new tr2_meshtree_t[_num_mesh_trees];
1329 1329
      Fread(_mesh_trees, sizeof(int), _num_mesh_trees, f);
1330 1330
    }
1331
-   //FIXME: endian
1331
+   //! \fixme endian
1332 1332
 
1333 1333
    /* Read frames */
1334 1334
    Fread(&_num_frames, sizeof(_num_frames), 1, f);
1335
-   //FIXME: endian
1335
+   //! \fixme endian
1336 1336
 
1337 1337
    printDebug("Load", "_num_frames = %u", _num_frames);
1338 1338
 
@@ -1342,7 +1342,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1342 1342
    {
1343 1343
      _frames = new unsigned short[_num_frames];
1344 1344
      Fread(_frames, 2, _num_frames, f);
1345
-     //FIXME: endian
1345
+     //! \fixme endian
1346 1346
 
1347 1347
      if (mEngineVersion == TR_VERSION_1)
1348 1348
      {
@@ -1373,7 +1373,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1373 1373
 
1374 1374
    /* Read moveables */
1375 1375
    Fread(&_num_moveables, sizeof(_num_moveables), 1, f);
1376
-   //FIXME: endian
1376
+   //! \fixme endian
1377 1377
    printDebug("Load", "_num_moveables = %u", _num_moveables);
1378 1378
 
1379 1379
 	_moveables = 0x0;
@@ -1384,10 +1384,10 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1384 1384
      _moveables = new tr2_moveable_t[_num_moveables];
1385 1385
      Fread(_moveables, 18, _num_moveables, f);
1386 1386
    }
1387
-   //FIXME: endian
1387
+   //! \fixme endian
1388 1388
 
1389 1389
    Fread(&_num_static_meshes, sizeof(int), 1, f);
1390
-   //FIXME: endian
1390
+   //! \fixme endian
1391 1391
    printDebug("Load", "_num_static_meshes = %u", _num_static_meshes);
1392 1392
 
1393 1393
    // SAFE EXIT //////////////////////////
@@ -1399,7 +1399,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1399 1399
      _static_meshes = new tr2_staticmesh_t[_num_static_meshes];
1400 1400
      Fread(_static_meshes, sizeof(tr2_staticmesh_t),
1401 1401
 	   _num_static_meshes, f);
1402
-     //FIXME: endian
1402
+     //! \fixme endian
1403 1403
    }
1404 1404
 
1405 1405
 	_object_textures = 0x0;
@@ -1409,7 +1409,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1409 1409
      /* Read object textures */
1410 1410
      Fread(&_num_object_textures, sizeof(int), 1, f);
1411 1411
      printDebug("Load", "_num_object_textures = %u", _num_object_textures);
1412
-     //FIXME: endian
1412
+     //! \fixme endian
1413 1413
 
1414 1414
      if (_num_object_textures > 0)
1415 1415
      {
@@ -1418,7 +1418,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1418 1418
        Fread(_object_textures, sizeof(tr2_object_texture_t),
1419 1419
 	     _num_object_textures, f);
1420 1420
      }
1421
-     //FIXME: endian
1421
+     //! \fixme endian
1422 1422
    }
1423 1423
 
1424 1424
 
@@ -1436,7 +1436,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1436 1436
 
1437 1437
    /* Read sprite textures */
1438 1438
    Fread(&_num_sprite_textures, sizeof(int), 1, f);
1439
-   //FIXME: endian
1439
+   //! \fixme endian
1440 1440
    printDebug("Load", "_num_sprite_textures = %u", _num_sprite_textures);
1441 1441
 
1442 1442
 	_sprite_textures = 0x0;
@@ -1447,11 +1447,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1447 1447
      Fread(_sprite_textures, sizeof(tr2_sprite_texture_t),
1448 1448
 	   _num_sprite_textures, f);
1449 1449
    }
1450
-   //FIXME: endian
1450
+   //! \fixme endian
1451 1451
 
1452 1452
    /* Read sprite texture data (?) */
1453 1453
    Fread(&_num_sprite_sequences, sizeof(int), 1, f);
1454
-   //FIXME: endian
1454
+   //! \fixme endian
1455 1455
    printDebug("Load", "_num_sprite_sequences = %u", _num_sprite_sequences);
1456 1456
 
1457 1457
 	_sprite_sequences = 0x0;
@@ -1462,11 +1462,11 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1462 1462
      Fread(_sprite_sequences, sizeof(tr2_sprite_sequence_t),
1463 1463
 	   _num_sprite_sequences, f);
1464 1464
    }
1465
-   //FIXME: endian
1465
+   //! \fixme endian
1466 1466
 
1467 1467
    /* Read cameras */
1468 1468
    Fread(&_num_cameras, sizeof(_num_cameras), 1, f);
1469
-   //FIXME: endian
1469
+   //! \fixme endian
1470 1470
    printDebug("Load", "_num_cameras = %i", _num_cameras);
1471 1471
 
1472 1472
 	_cameras = 0x0;
@@ -1475,7 +1475,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1475 1475
    {
1476 1476
      _cameras = new tr2_camera_t[_num_cameras];
1477 1477
      Fread(_cameras, sizeof(tr2_camera_t), _num_cameras, f);
1478
-     //FIXME: endian
1478
+     //! \fixme endian
1479 1479
    }
1480 1480
 
1481 1481
 	if (mEngineVersion == TR_VERSION_4)
@@ -1497,7 +1497,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1497 1497
 
1498 1498
    /* Read sound effects (?) */
1499 1499
    Fread(&_num_sound_sources, sizeof(_num_sound_sources), 1, f);
1500
-   //FIXME: endian
1500
+   //! \fixme endian
1501 1501
    printDebug("Load", "_num_sound_sources = %i", _num_sound_sources);
1502 1502
 
1503 1503
 	_sound_sources = 0x0;
@@ -1518,7 +1518,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1518 1518
        Fread(_sound_sources, sizeof(tr2_sound_source_t),
1519 1519
 	     _num_sound_sources, f);
1520 1520
      }
1521
-     //FIXME: endian
1521
+     //! \fixme endian
1522 1522
    }
1523 1523
 
1524 1524
 #ifdef OBSOLETE
@@ -1539,7 +1539,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1539 1539
 
1540 1540
    /* Read boxes */
1541 1541
    Fread(&_num_boxes, sizeof(_num_boxes), 1, f);
1542
-   //FIXME: endian
1542
+   //! \fixme endian
1543 1543
    printDebug("Load", "_num_boxes = %i", _num_boxes);
1544 1544
 
1545 1545
 	_boxes = 0x0;
@@ -1559,7 +1559,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1559 1559
 		  tr1box = new tr1_box[_num_boxes];
1560 1560
 
1561 1561
 		  Fread(tr1box, sizeof(struct tr1_box), _num_boxes, f);
1562
-		  //FIXME: endian
1562
+		  //! \fixme endian
1563 1563
 
1564 1564
          for (j = 0; j < _num_boxes; ++j)
1565 1565
 			{
@@ -1577,12 +1577,12 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1577 1577
      {
1578 1578
        Fread(_boxes, sizeof(tr2_box_t), _num_boxes, f);
1579 1579
      }
1580
-     //FIXME: endian
1580
+     //! \fixme endian
1581 1581
    }
1582 1582
 
1583 1583
    /* Read overlaps (?) */
1584 1584
    Fread(&_num_overlaps, sizeof(_num_overlaps), 1, f);
1585
-   //FIXME: endian
1585
+   //! \fixme endian
1586 1586
    printDebug("Load", "_num_overlaps = %i", _num_overlaps);
1587 1587
 
1588 1588
 	_overlaps = 0x0;
@@ -1591,7 +1591,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1591 1591
    {
1592 1592
      _overlaps = new short[_num_overlaps];
1593 1593
      Fread(_overlaps, 2, _num_overlaps, f);
1594
-     //FIXME: endian
1594
+     //! \fixme endian
1595 1595
    }
1596 1596
 
1597 1597
 	_zones = 0x0;
@@ -1609,12 +1609,12 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1609 1609
      {
1610 1610
        Fread(_zones, 20, _num_boxes, f);
1611 1611
      }
1612
-     //FIXME: endian
1612
+     //! \fixme endian
1613 1613
    }
1614 1614
 
1615 1615
    /* Read animation textures (?) */
1616 1616
    Fread(&_num_animated_textures, sizeof(_num_animated_textures), 1, f);
1617
-   //FIXME: endian
1617
+   //! \fixme endian
1618 1618
    printDebug("Load", "_num_animated_textures = %i", _num_animated_textures);
1619 1619
 
1620 1620
 	_animated_textures = 0x0;
@@ -1623,7 +1623,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1623 1623
    {
1624 1624
      _animated_textures = new short[_num_animated_textures];
1625 1625
      Fread(_animated_textures, 2, _num_animated_textures, f);
1626
-     //FIXME: endian
1626
+     //! \fixme endian
1627 1627
    }
1628 1628
 
1629 1629
    if (mEngineVersion >= TR_VERSION_3)
@@ -1639,7 +1639,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1639 1639
       }
1640 1640
 
1641 1641
       Fread(&_num_object_textures, sizeof(_num_object_textures), 1, f);
1642
-      //FIXME: endian
1642
+      //! \fixme endian
1643 1643
 
1644 1644
       printDebug("Load", "_num_object_textures = %i", _num_object_textures);
1645 1645
 
@@ -1650,7 +1650,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1650 1650
 			// Used to be 2 * num, and I forgot why...
1651 1651
 			_object_textures = new tr2_object_texture_t[_num_object_textures];
1652 1652
 
1653
-			//FIXME: This is fu fu fu fu fu fu
1653
+			//! \fixme This is fu fu fu fu fu fu
1654 1654
 			if (mEngineVersion == TR_VERSION_4)
1655 1655
 	      {
1656 1656
 				int jjj, kkk;
@@ -1690,12 +1690,12 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1690 1690
 						_num_object_textures, f);
1691 1691
 			}
1692 1692
       }
1693
-      //FIXME: endian
1693
+      //! \fixme endian
1694 1694
    }
1695 1695
 
1696 1696
    /* Read items */
1697 1697
    Fread(&_num_items, sizeof(_num_items), 1, f);
1698
-   //FIXME: endian
1698
+   //! \fixme endian
1699 1699
    printDebug("Load", "_num_items = %i", _num_items);
1700 1700
 
1701 1701
 	_items = 0x0;
@@ -1718,7 +1718,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1718 1718
        Fread(_items, sizeof(tr2_item_t), _num_items, f);
1719 1719
      }
1720 1720
    }
1721
-   //FIXME: endian
1721
+   //! \fixme endian
1722 1722
 
1723 1723
    /* Read LightMaps */
1724 1724
    _light_map = new unsigned char[32 * 256];
@@ -1786,7 +1786,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1786 1786
 		unsigned short num_cinematic_frames;
1787 1787
 
1788 1788
      Fread(&num_cinematic_frames, sizeof(num_cinematic_frames), 1, f);
1789
-     //FIXME: endian
1789
+     //! \fixme endian
1790 1790
 
1791 1791
 	  _num_cinematic_frames = num_cinematic_frames;
1792 1792
 
@@ -1807,7 +1807,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1807 1807
 
1808 1808
    /* Read demodata (?) */
1809 1809
    Fread(&_num_demo_data, sizeof(_num_demo_data), 1, f);
1810
-   //FIXME: endian
1810
+   //! \fixme endian
1811 1811
    printDebug("Load", "_num_demo_data = %i", _num_demo_data);
1812 1812
 
1813 1813
 	_demo_data = 0x0;
@@ -1826,7 +1826,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1826 1826
    if (mEngineVersion == TR_VERSION_1)
1827 1827
    {
1828 1828
      Fread(mSoundMap, sizeof(short), 256, f);
1829
-     //memset(_sound_map, 0, 370 * sizeof(short));   //FIXME: KLUDGE!!!
1829
+     //memset(_sound_map, 0, 370 * sizeof(short));   //! \fixme KLUDGE!!!
1830 1830
    }
1831 1831
    else
1832 1832
    {
@@ -1839,12 +1839,12 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1839 1839
        Fread(mSoundMap, sizeof(short), 370, f);
1840 1840
      }
1841 1841
    }
1842
-   //FIXME: endian
1842
+   //! \fixme endian
1843 1843
 
1844 1844
    /* Read SoundDetails */
1845 1845
    Fread(&mNumSoundDetails, sizeof(mNumSoundDetails), 1, f);
1846 1846
    printDebug("Load", "mNumSoundDetails = %i", mNumSoundDetails);
1847
-   //FIXME: endian
1847
+   //! \fixme endian
1848 1848
 
1849 1849
 	mSoundDetails = 0x0;
1850 1850
 
@@ -1853,7 +1853,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1853 1853
      mSoundDetails = new tr2_sound_details_t[mNumSoundDetails];
1854 1854
      Fread(mSoundDetails, sizeof(tr2_sound_details_t), mNumSoundDetails, f);
1855 1855
    }
1856
-   //FIXME: endian
1856
+   //! \fixme endian
1857 1857
 
1858 1858
 	// Read sound sample indices
1859 1859
 	mSampleIndices = 0x0;
@@ -1881,7 +1881,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1881 1881
 		if (mNumSampleIndices > 0)
1882 1882
 		{
1883 1883
 			mSampleIndices = new int[mNumSampleIndices];
1884
-			// FIXME: (Endian)
1884
+			//! \fixme (Endian)
1885 1885
 			Fread(mSampleIndices, 4, mNumSampleIndices, f);
1886 1886
 		}
1887 1887
 		break;
@@ -1889,7 +1889,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1889 1889
 		mFreadMode = TR_FREAD_NORMAL;
1890 1890
 		// 0x46464952
1891 1891
 
1892
-		// FIXME: (Endian) Read bitu32 / u_int32_t
1892
+		//! \fixme (Endian) Read bitu32 / u_int32_t
1893 1893
 		Fread(&mNumTR4Samples, 4, 1, f);
1894 1894
 		printDebug("Load", "mNumTR4Samples = %i", mNumTR4Samples);
1895 1895
 
@@ -1979,14 +1979,14 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1979 1979
 		}
1980 1980
 		break;
1981 1981
 	default:
1982
-		// FIXME: (Endian) Read bit32 / int32_t
1982
+		//! \fixme (Endian) Read bit32 / int32_t
1983 1983
 		Fread(&mNumSampleIndices, 4, 1, f);
1984 1984
 		printDebug("Load", "mNumSampleIndices = %i", mNumSampleIndices);
1985 1985
 
1986 1986
 		if (mNumSampleIndices > 0)
1987 1987
 		{
1988 1988
 			mSampleIndices = new int[mNumSampleIndices];
1989
-			// FIXME: (Endian)
1989
+			//! \fixme (Endian)
1990 1990
 			Fread(mSampleIndices, 4, mNumSampleIndices, f);
1991 1991
 		}
1992 1992
    }
@@ -1998,7 +1998,7 @@ int TombRaider::Load(char *filename, void (*percent)(int))
1998 1998
      delete [] mCompressedLevelData;
1999 1999
    }
2000 2000
 
2001
-	// FIXME: memory damage?
2001
+	//! \fixme memory damage?
2002 2002
 	mCompressedLevelData = NULL;
2003 2003
 #endif
2004 2004
 
@@ -2187,7 +2187,7 @@ int TombRaider::getMeshCount()
2187 2187
 }
2188 2188
 
2189 2189
 
2190
-// FIXME: Needs refinement once the ideal format it's feeding is refined
2190
+//! \fixme Needs refinement once the ideal format it's feeding is refined
2191 2191
 // I should stick a HACK postfix on the method name - it's temporary
2192 2192
 // until an array format can be crafted from a pinned down design and
2193 2193
 // RE notes review session ( eg what about TR5? )
@@ -2315,7 +2315,7 @@ void TombRaider::getMeshTexturedRectangle(unsigned int meshIndex,
2315 2315
 	{
2316 2316
 		givenWarning = true;
2317 2317
 
2318
-		// FIXME: Use Material class to handle greyscale alpha intensity
2318
+		//! \fixme Use Material class to handle greyscale alpha intensity
2319 2319
 		//        (partial alpha)
2320 2320
 		print("getMeshTexturedRectangle",
2321 2321
 				"TR3+ greyscale alpha intensity not implmented, %s:%i",
@@ -2364,7 +2364,7 @@ void TombRaider::getMeshTexturedTriangle(unsigned int meshIndex,
2364 2364
 	{
2365 2365
 		givenWarning = true;
2366 2366
 
2367
-		// FIXME: Use Material class to handle greyscale alpha intensity
2367
+		//! \fixme Use Material class to handle greyscale alpha intensity
2368 2368
 		//        (partial alpha)
2369 2369
 		print("getMeshTexturedTriangle",
2370 2370
 				"TR3+ greyscale alpha intensity not implmented, %s:%i",
@@ -2425,7 +2425,7 @@ int TombRaider::getMeshColoredRectangleCount(unsigned int meshIndex)
2425 2425
 }
2426 2426
 
2427 2427
 
2428
-// FIXME: Perhaps making color an 8bit intensity would be a better idea
2428
+//! \fixme Perhaps making color an 8bit intensity would be a better idea
2429 2429
 void TombRaider::getMeshVertexArrays(unsigned int meshIndex,
2430 2430
 												 unsigned int *vertexCount, float **verts,
2431 2431
 												 unsigned int *normalCount, float **norms,
@@ -2597,7 +2597,7 @@ void TombRaider::getRoomInfo(unsigned int index,
2597 2597
 		// Bounding Box setup
2598 2598
 		for (i = 0; i < mRoomsTR5[index].numLayers; ++i)
2599 2599
 		{
2600
-			// FIXME: check the boxes are in min, max order in TRC
2600
+			//! \fixme check the boxes are in min, max order in TRC
2601 2601
 
2602 2602
 			if (i == 0)
2603 2603
 			{
@@ -3000,7 +3000,7 @@ unsigned int TombRaider::getRoomPortalCount(unsigned int roomIndex)
3000 3000
 }
3001 3001
 
3002 3002
 
3003
-// FIXME: No TRC support
3003
+//! \fixme No TRC support
3004 3004
 void TombRaider::getRoomRectangle(unsigned int roomIndex,
3005 3005
 											 unsigned int rectangleIndex,
3006 3006
 											 unsigned int *indices, float *texCoords,
@@ -3539,7 +3539,7 @@ unsigned int TombRaider::getRoomTriangleCount(unsigned int roomIndex)
3539 3539
 }
3540 3540
 
3541 3541
 
3542
-// FIXME: No TR5 support
3542
+//! \fixme No TR5 support
3543 3543
 void TombRaider::getRoomVertex(unsigned int roomIndex,unsigned int vertexIndex,
3544 3544
 										 float *xyz, float *rgba)
3545 3545
 {
@@ -3655,7 +3655,7 @@ void TombRaider::getRoomVertexArrays(unsigned int roomIndex,
3655 3655
 				(*normals)[k*3+1] = mRoomsTR5[roomIndex].faces[i].verts[j].ny;
3656 3656
 				(*normals)[k*3+2] = mRoomsTR5[roomIndex].faces[i].verts[j].nz;
3657 3657
 
3658
-				// FIXME: Ah, yeah this may be wrong
3658
+				//! \fixme Ah, yeah this may be wrong
3659 3659
 				c = ((unsigned char *)&mRoomsTR5[roomIndex].faces[i].verts[j].vColor)[1];
3660 3660
 				(*colors)[k*4] = (float)c / 255.0f;
3661 3661
 				c = ((unsigned char *)&mRoomsTR5[roomIndex].faces[i].verts[j].vColor)[2];
@@ -3670,7 +3670,7 @@ void TombRaider::getRoomVertexArrays(unsigned int roomIndex,
3670 3670
 	default:
3671 3671
 		*vertexCount = count;
3672 3672
 		*vertices = new float[count*3];
3673
-		*normalCount = 0;  // FIXME: Do some TR1-TR4 levels support normals here?
3673
+		*normalCount = 0;  //! \fixme Do some TR1-TR4 levels support normals here?
3674 3674
 		*normals = 0x0;
3675 3675
 		*colorCount = count;
3676 3676
 		*colors = new float[count*4];
@@ -3930,7 +3930,7 @@ void TombRaider::getSoundSample(unsigned int index,
3930 3930
 	switch (Engine())
3931 3931
 	{
3932 3932
 	case TR_VERSION_1:
3933
-		// FIXME: This implies higher tmp memory cost ( copy safety )
3933
+		//! \fixme This implies higher tmp memory cost ( copy safety )
3934 3934
 		getRiffData(bytes, &riff);
3935 3935
 
3936 3936
 		if (riff && (int)index < mNumSampleIndices)
@@ -4137,7 +4137,7 @@ void TombRaider::reset()
4137 4137
 		return;
4138 4138
 	}
4139 4139
 
4140
-  // FIXME: Palettes aren't the same size anymore
4140
+  //! \fixme Palettes aren't the same size anymore
4141 4141
   //memset(_palette8, 0, 256);
4142 4142
   //memset(_palette16, 0, 256);
4143 4143
 
@@ -4336,7 +4336,7 @@ void TombRaider::reset()
4336 4336
   if (_textile32)
4337 4337
     delete [] _textile32;
4338 4338
 
4339
-  // FIXME: Damaged memory causes delete to not set pointer to NULL?
4339
+  //! \fixme Damaged memory causes delete to not set pointer to NULL?
4340 4340
   _tex_special = NULL;
4341 4341
   _textile8 = NULL;
4342 4342
   _textile16 = NULL;
@@ -4435,7 +4435,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4435 4435
 
4436 4436
 		/* Get Centre + Unknowns */
4437 4437
 		memcpy(&mMeshes[i].centre.x, mesh_pointer, 10);
4438
-		//FIXME: endian
4438
+		//! \fixme endian
4439 4439
 
4440 4440
 		// depending on the interpretation of the unknowns that follow the Centre
4441 4441
 		// element, more endian conversion may be necessary
@@ -4443,7 +4443,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4443 4443
 
4444 4444
 		/* Get number of vertices */
4445 4445
 		memcpy(&mMeshes[i].num_vertices, mesh_pointer, 2);
4446
-		//FIXME: endian
4446
+		//! \fixme endian
4447 4447
 
4448 4448
 		printDebug("ExtractMeshes", "mMeshes[%i].num_vertices = %u",
4449 4449
 					  i, mMeshes[i].num_vertices);
@@ -4459,13 +4459,13 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4459 4459
 			mMeshes[i].vertices = new tr2_vertex_t[mMeshes[i].num_vertices];
4460 4460
 
4461 4461
 		memcpy(mMeshes[i].vertices, mesh_pointer, size);
4462
-		//FIXME: endian
4462
+		//! \fixme endian
4463 4463
 
4464 4464
 		mesh_pointer += size;
4465 4465
 
4466 4466
 		/* Get number of normals */
4467 4467
 		memcpy(&mMeshes[i].num_normals, mesh_pointer, sizeof(unsigned short));
4468
-		//FIXME: endian
4468
+		//! \fixme endian
4469 4469
 
4470 4470
 		mesh_pointer += sizeof(unsigned short);
4471 4471
 		negative_size = (mMeshes[i].num_normals < 0);
@@ -4501,14 +4501,14 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4501 4501
 
4502 4502
 			memcpy(mMeshes[i].normals, mesh_pointer, size);
4503 4503
 		}
4504
-		//FIXME: endian
4504
+		//! \fixme endian
4505 4505
 
4506 4506
 		mesh_pointer += size;
4507 4507
 
4508 4508
 		/* Get number of textured rectangles */
4509 4509
 		memcpy(&mMeshes[i].num_textured_rectangles,
4510 4510
 				 mesh_pointer, sizeof(unsigned short));
4511
-		//FIXME: endian
4511
+		//! \fixme endian
4512 4512
 
4513 4513
 		mesh_pointer += sizeof(unsigned short);
4514 4514
 		mMeshes[i].num_textured_rectangles =
@@ -4543,7 +4543,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4543 4543
 			{
4544 4544
 				memcpy(mMeshes[i].textured_rectangles, mesh_pointer, size);
4545 4545
 			}
4546
-			//FIXME: endian
4546
+			//! \fixme endian
4547 4547
 
4548 4548
 			if (mEngineVersion != TR_VERSION_4)
4549 4549
 				mesh_pointer += size;
@@ -4552,7 +4552,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4552 4552
 		/* Get number of textured triangles */
4553 4553
 		memcpy(&mMeshes[i].num_textured_triangles,
4554 4554
 				 mesh_pointer, sizeof(unsigned short));
4555
-		//FIXME: endian
4555
+		//! \fixme endian
4556 4556
 
4557 4557
 		mesh_pointer += sizeof(unsigned short);
4558 4558
 		mMeshes[i].num_textured_triangles =
@@ -4592,7 +4592,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4592 4592
 			{
4593 4593
 				memcpy(mMeshes[i].textured_triangles, mesh_pointer, size);
4594 4594
 			}
4595
-			//FIXME: endian
4595
+			//! \fixme endian
4596 4596
 
4597 4597
 			if (mEngineVersion != TR_VERSION_4)
4598 4598
 				mesh_pointer += size;
@@ -4613,7 +4613,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4613 4613
 		/* Get number of coloured rectangles */
4614 4614
 		memcpy(&mMeshes[i].num_coloured_rectangles, mesh_pointer,
4615 4615
 				 sizeof(unsigned short));
4616
-		//FIXME: endian
4616
+		//! \fixme endian
4617 4617
 		mesh_pointer += sizeof(unsigned short);
4618 4618
 		mMeshes[i].num_coloured_rectangles =
4619 4619
       (short)abs(mMeshes[i].num_coloured_rectangles);
@@ -4633,14 +4633,14 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4633 4633
 		if (mMeshes[i].num_coloured_rectangles > 0)
4634 4634
 		{
4635 4635
 			memcpy(mMeshes[i].coloured_rectangles, mesh_pointer, size);
4636
-			//FIXME: endian
4636
+			//! \fixme endian
4637 4637
 			mesh_pointer += size;
4638 4638
 		}
4639 4639
 
4640 4640
 		/* Get number of coloured triangles */
4641 4641
 		memcpy(&mMeshes[i].num_coloured_triangles, mesh_pointer,
4642 4642
 				 sizeof(unsigned short));
4643
-		//FIXME: endian
4643
+		//! \fixme endian
4644 4644
 
4645 4645
 		mesh_pointer += sizeof(unsigned short);
4646 4646
 		mMeshes[i].num_coloured_triangles =
@@ -4661,7 +4661,7 @@ void TombRaider::extractMeshes(unsigned char *mesh_data,
4661 4661
 		if (mMeshes[i].num_coloured_triangles > 0)
4662 4662
 		{
4663 4663
 			memcpy(mMeshes[i].coloured_triangles, mesh_pointer, size);
4664
-			//FIXME: endian
4664
+			//! \fixme endian
4665 4665
 
4666 4666
 			mesh_pointer += size;
4667 4667
 		}
@@ -4859,7 +4859,7 @@ unsigned char *TombRaider::getTexTile(int texture)
4859 4859
 		case TR_VERSION_3: // Account for alpha flags
4860 4860
 			for (j = 0; j < (int)_num_object_textures; j++)
4861 4861
 			{
4862
-				// FIXME: This kind of works for lighting - but messes up lara
4862
+				//! \fixme This kind of works for lighting - but messes up lara
4863 4863
 #ifdef FIXME
4864 4864
 				if (_object_textures[j].tile == texture &&
4865 4865
 					 _object_textures[j].transparency_flags == 1)
@@ -4994,7 +4994,7 @@ unsigned char *TombRaider::getTexTile(int texture)
4994 4994
 }
4995 4995
 
4996 4996
 
4997
-// FIXME: Move these data about to make full use in the class  ;)
4997
+//! \fixme Move these data about to make full use in the class  ;)
4998 4998
 int TombRaider::loadTR5(FILE *f, void (*percent)(int))
4999 4999
 {
5000 5000
 	unsigned int level_data_sz, riffOffset, seperator0;
@@ -6155,7 +6155,7 @@ int TombRaider::loadTR5(FILE *f, void (*percent)(int))
6155 6155
 		fseek(f, u, SEEK_SET);
6156 6156
 	}
6157 6157
 
6158
-	// FIXME: (Endian) Read bitu32 / u_int32_t
6158
+	//! \fixme (Endian) Read bitu32 / u_int32_t
6159 6159
 	Fread(&mNumTR4Samples, 4, 1, f);
6160 6160
 	printDebug("Load", "mNumTR4Samples = %i", mNumTR4Samples);
6161 6161
 

src/hel/Vector3d.cpp → src/Vector3d.cpp View File

@@ -21,7 +21,7 @@
21 21
 
22 22
 #include <math.h>
23 23
 
24
-#include <hel/Vector3d.h>
24
+#include <Vector3d.h>
25 25
 
26 26
 
27 27
 ////////////////////////////////////////////////////////////

src/hel/ViewVolume.cpp → src/ViewVolume.cpp View File

@@ -23,7 +23,7 @@
23 23
 
24 24
 #include <math.h>
25 25
 
26
-#include <hel/ViewVolume.h>
26
+#include <ViewVolume.h>
27 27
 
28 28
 
29 29
 ////////////////////////////////////////////////////////////

+ 3
- 2
src/World.cpp View File

@@ -537,8 +537,9 @@ void World::moveEntity(entity_t *e, char movement)
537 537
 			break;
538 538
 		}
539 539
 
540
-		// FIXME: Test for vector (move vector) / plane (portal) collision here
541
-		//        to see if we need to switch rooms... man...
540
+		/*! \fixme Test for vector (move vector) / plane (portal) collision here
541
+		 * to see if we need to switch rooms... man...
542
+         */
542 543
 
543 544
 		h = y;
544 545
 		getHeightAtPosition(room, x, &h, z);

+ 1
- 1
test/GLString.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file GLString.cpp
2
+ * \file test/GLString.cpp
3 3
  * \brief Open GL rendering font/string Unit Test
4 4
  *
5 5
  * \author Mongoose

test/hel/math.cpp → test/MatMath.cpp View File

@@ -1,7 +1,7 @@
1 1
 #include <stdio.h>
2 2
 #include <math.h>
3 3
 
4
-#include <hel/math.h>
4
+#include <MatMath.h>
5 5
 
6 6
 void helMathTest()
7 7
 {

test/hel/Matrix.cpp → test/Matrix.cpp View File

@@ -23,7 +23,7 @@
23 23
 #include <math.h>
24 24
 #include <strings.h>
25 25
 
26
-#include <hel/Matrix.h>
26
+#include <Matrix.h>
27 27
 
28 28
 
29 29
 /* <Order> is (r)ow or (c)ol */

test/hel/Quaternion.cpp → test/Quaternion.cpp View File

@@ -22,7 +22,7 @@
22 22
 #include <stdio.h>
23 23
 #include <math.h>
24 24
 
25
-#include <hel/Quaternion.h>
25
+#include <Quaternion.h>
26 26
 
27 27
 int runQuaternionUnitTest(int argc, char *argv[])
28 28
 {

+ 1
- 1
test/Sound.cpp View File

@@ -1,5 +1,5 @@
1 1
 /*!
2
- * \file Sound.cpp
2
+ * \file test/Sound.cpp
3 3
  * \brief This is the audio manager Unit Test
4 4
  *
5 5
  * \author Mongoose

+ 35
- 56
test/mtk_tga.cpp View File

@@ -1,66 +1,45 @@
1
-/*================================================================
1
+/*!
2
+ * \file test/mtk_tga.cpp
3
+ * \brief The TGA reader Unit Test
2 4
  *
3
- * Project : Freyja
4
- * Author  : Mongoose
5
- * Website : http://www.westga.edu/~stu7440/
6
- * Email   : stu7440@westga.edu
7
- * Object  :
8
- * License : GPL See file COPYING, also (C) 2000 Mongoose
9
- * Comments: TGA plug-in
10
- *
11
- *           TODO: type should pass more info
12
- *                 2 bits for RGBA | RGB | GREY
13
- *                 val for depth
14
- *
15
- *           This file was generated using Mongoose's C++
16
- *           template generator script.  <stu7440@westga.edu>
17
- *
18
- *-- History ------------------------------------------------
19
- *
20
- * 2001-10-25:
21
- * Mongoose - support for screen origin bit
22
- *
23
- * 2000-10-15:
24
- * Mongoose - Created
25
- ================================================================*/
26
-
27
-#include <string.h>
28
-#include <stdarg.h>
29
-
5
+ * \author xythobuz
6
+ */
7
+#include <stdio.h>
8
+#include <stdlib.h>
9
+#include <greatest.h>
30 10
 #include <mtk_tga.h>
31 11
 
32
-int main(int argc, char *argv[])
33
-{
34
-  FILE *f;
35
-  unsigned char *image;
36
-  unsigned int width;
37
-  unsigned int height;
38
-  char type;
39
-
40
-  if (argc > 1)
41
-  {
42
-    f = fopen(argv[1], "r");
12
+#define TESTFILE "data/font-0.tga"
13
+FILE *f = NULL;
43 14
 
44
-    if (!f)
45
-    {
46
-      perror("Failed to open file> ");
47
-      return -1;
48
-    }
15
+TEST checkFile() {
16
+    ASSERTm("File wasn't opened. Please run the suite!", f != NULL);
17
+    ASSERT_FALSEm("File is invalid?!", mtk_image__tga_check(f));
18
+    PASS();
19
+}
49 20
 
50
-    if (!mtk_image__tga_check(f))
51
-    {
52
-      if (!mtk_image__tga_load(f, &image, &width, &height, &type))
53
-      {
54
-        printf("Loaded %s successfully!\n", argv[1]);
55
-        delete [] image;
56
-      }
57
-    }
21
+TEST loadFile() {
22
+    unsigned char *image;
23
+    unsigned int width, height;
24
+    char type;
25
+    ASSERTm("File wasn't opened. Please run the suite!", f != NULL);
26
+    ASSERT_FALSEm("File couldn't be loaded!", mtk_image__tga_load(f, &image, &width, &height, &type));
27
+    printf("\nWidth: %u\nHeight: %u\nType: %d\n", width, height, type);
28
+    PASS();
29
+}
58 30
 
31
+SUITE(tgaSuite) {
32
+    f = fopen(TESTFILE, "r");
33
+    RUN_TEST(checkFile);
34
+    RUN_TEST(loadFile);
59 35
     fclose(f);
60
-  } else {
61
-      printf("Usage: %s testfile.tga\n", argv[0]);
62
-  }
36
+}
37
+
38
+GREATEST_MAIN_DEFS();
63 39
 
64
-  return 0;
40
+int main(int argc, char *argv[]) {
41
+    GREATEST_MAIN_BEGIN();
42
+    RUN_SUITE(tgaSuite);
43
+    GREATEST_MAIN_END();
65 44
 }
66 45
 

Loading…
Cancel
Save