浏览代码

Removed hel mstl subfolders

Thomas Buck 11 年前
父节点
当前提交
884ce37576

+ 3
- 0
ChangeLog 查看文件

6
  OpenRaider (0.1.2) xythobuz <xythobuz@xythobuz.de>
6
  OpenRaider (0.1.2) xythobuz <xythobuz@xythobuz.de>
7
 
7
 
8
 	[ 20140110 ]
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
 	* Moved remaining Unit Tests (Network & TombRaider)
12
 	* Moved remaining Unit Tests (Network & TombRaider)
10
 	* memory_test Unit Test no longer produces warnings
13
 	* memory_test Unit Test no longer produces warnings
11
 	* Building a memory test build no longer produces warnings
14
 	* Building a memory test build no longer produces warnings

+ 1
- 1
Doxyfile 查看文件

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

+ 10
- 14
Makefile 查看文件

32
 BASE_DEFS=$(shell sdl-config --cflags) -Iinclude -DSDL_INTERFACE \
32
 BASE_DEFS=$(shell sdl-config --cflags) -Iinclude -DSDL_INTERFACE \
33
 	-DUSING_OPENGL -DZLIB_SUPPORT -DUSING_EMITTER \
33
 	-DUSING_OPENGL -DZLIB_SUPPORT -DUSING_EMITTER \
34
 	-DUSING_OPENAL -DUSING_MTK_TGA -DUSING_PTHREADS \
34
 	-DUSING_OPENAL -DUSING_MTK_TGA -DUSING_PTHREADS \
35
-	-DUSING_HEL -DHAVE_SDL_TTF
35
+	-DHAVE_SDL_TTF
36
 
36
 
37
 BASE_LIBS=$(shell sdl-config --libs) -lz -lstdc++ \
37
 BASE_LIBS=$(shell sdl-config --libs) -lz -lstdc++ \
38
 	-lpthread -lSDL_ttf
38
 	-lpthread -lSDL_ttf
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
 OBJS = \
178
 OBJS = \
187
 	$(DEBUG_OBJ) \
179
 	$(DEBUG_OBJ) \
188
-	$(HEL_OBJ) \
189
 	$(BUILDDIR)/Camera.o \
180
 	$(BUILDDIR)/Camera.o \
190
 	$(BUILDDIR)/Emitter.o \
181
 	$(BUILDDIR)/Emitter.o \
191
 	$(BUILDDIR)/GLString.o \
182
 	$(BUILDDIR)/GLString.o \
192
 	$(BUILDDIR)/Light.o \
183
 	$(BUILDDIR)/Light.o \
184
+	$(BUILDDIR)/MatMath.o \
185
+	$(BUILDDIR)/Matrix.o \
193
 	$(BUILDDIR)/mtk_tga.o \
186
 	$(BUILDDIR)/mtk_tga.o \
194
 	$(BUILDDIR)/Network.o \
187
 	$(BUILDDIR)/Network.o \
195
 	$(BUILDDIR)/OpenGLMesh.o \
188
 	$(BUILDDIR)/OpenGLMesh.o \
196
 	$(BUILDDIR)/OpenRaider.o \
189
 	$(BUILDDIR)/OpenRaider.o \
197
 	$(BUILDDIR)/Particle.o \
190
 	$(BUILDDIR)/Particle.o \
191
+	$(BUILDDIR)/Quaternion.o \
198
 	$(BUILDDIR)/Render.o \
192
 	$(BUILDDIR)/Render.o \
199
 	$(BUILDDIR)/SDLSystem.o \
193
 	$(BUILDDIR)/SDLSystem.o \
200
 	$(BUILDDIR)/SkeletalModel.o \
194
 	$(BUILDDIR)/SkeletalModel.o \
202
 	$(BUILDDIR)/System.o \
196
 	$(BUILDDIR)/System.o \
203
 	$(BUILDDIR)/Texture.o \
197
 	$(BUILDDIR)/Texture.o \
204
 	$(BUILDDIR)/TombRaider.o \
198
 	$(BUILDDIR)/TombRaider.o \
199
+	$(BUILDDIR)/Vector3d.o \
200
+	$(BUILDDIR)/ViewVolume.o \
205
 	$(BUILDDIR)/World.o
201
 	$(BUILDDIR)/World.o
206
 
202
 
207
 
203
 
324
 	@-echo "Building Matrix unit test"
320
 	@-echo "Building Matrix unit test"
325
 	mkdir -p $(BUILD_TEST_DIR)
321
 	mkdir -p $(BUILD_TEST_DIR)
326
 	$(CC) -Wall -g -lm -lstdc++ -Iinclude \
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
 	@-echo "================================================="
325
 	@-echo "================================================="
330
 	@-echo "Running Matrix unit test"
326
 	@-echo "Running Matrix unit test"
331
 	$(BUILD_TEST_DIR)/Matrix.test
327
 	$(BUILD_TEST_DIR)/Matrix.test
334
 	@-echo "Building Quaternion unit test"
330
 	@-echo "Building Quaternion unit test"
335
 	mkdir -p $(BUILD_TEST_DIR)
331
 	mkdir -p $(BUILD_TEST_DIR)
336
 	$(CC) -Wall -g -lm -lstdc++ -Iinclude \
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
 	@-echo "================================================="
334
 	@-echo "================================================="
339
 	@-echo "Running Quaternion unit test"
335
 	@-echo "Running Quaternion unit test"
340
 	$(BUILD_TEST_DIR)/Quaternion.test
336
 	$(BUILD_TEST_DIR)/Quaternion.test
343
 	@-echo "Building Math unit test"
339
 	@-echo "Building Math unit test"
344
 	mkdir -p $(BUILD_TEST_DIR)
340
 	mkdir -p $(BUILD_TEST_DIR)
345
 	$(CC) -Wall -g -lm -lstdc++ -Iinclude \
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
 	@-echo "================================================="
343
 	@-echo "================================================="
348
 	@-echo "Running hel unit test"
344
 	@-echo "Running hel unit test"
349
 	$(BUILD_TEST_DIR)/Math.test
345
 	$(BUILD_TEST_DIR)/Math.test

include/hel/BoundingVolume.h → include/BoundingVolume.h 查看文件

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

+ 3
- 3
include/Camera.h 查看文件

38
 #ifndef __HEL_MONGOOSE_CAMERA_H_
38
 #ifndef __HEL_MONGOOSE_CAMERA_H_
39
 #define __HEL_MONGOOSE_CAMERA_H_
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
 enum camera_command                /* Interactive camera control */
45
 enum camera_command                /* Interactive camera control */
46
 {
46
 {

+ 1
- 1
include/Emitter.h 查看文件

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

include/hel/Entity.h → include/Entity.h 查看文件

27
 #ifndef GUARD__HEL_MONGOOSE_ENTITY_H_
27
 #ifndef GUARD__HEL_MONGOOSE_ENTITY_H_
28
 #define GUARD__HEL_MONGOOSE_ENTITY_H_
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
 typedef enum
37
 typedef enum

+ 1
- 1
include/GLString.h 查看文件

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

+ 1
- 1
include/Light.h 查看文件

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

include/mstl/List.h → include/List.h 查看文件


include/mstl/Map.h → include/Map.h 查看文件

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

include/hel/math.h → include/MatMath.h 查看文件


include/hel/Matrix.h → include/Matrix.h 查看文件

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

+ 2
- 2
include/OpenGLMesh.h 查看文件

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

+ 10
- 10
include/OpenRaider.h 查看文件

27
 #define GUARD__OPENRAIDER_MONGOOSE_OPENRAIDER_H_
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
 typedef enum
42
 typedef enum

+ 2
- 2
include/Particle.h 查看文件

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

include/hel/Quaternion.h → include/Quaternion.h 查看文件

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

+ 14
- 14
include/Render.h 查看文件

23
 #ifndef GUARD__RENDER_MONGOOSE_RENDER_H_
23
 #ifndef GUARD__RENDER_MONGOOSE_RENDER_H_
24
 #define GUARD__RENDER_MONGOOSE_RENDER_H_
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
 #ifdef USING_EMITTER
38
 #ifdef USING_EMITTER
39
-#   include "Emitter.h"
39
+#include <Emitter.h>
40
 #endif
40
 #endif
41
 
41
 
42
 
42
 
50
 
50
 
51
 	~RenderRoom()
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
 		//lights.erase();
54
 		//lights.erase();
55
 	}
55
 	}
56
 
56
 
342
     * Mongoose - Created
342
     * Mongoose - Created
343
     ------------------------------------------------------*/
343
     ------------------------------------------------------*/
344
 
344
 
345
-	// FIXME: Should be private
345
+	//! \fixme Should be private
346
    void drawLoadScreen();
346
    void drawLoadScreen();
347
    /*------------------------------------------------------
347
    /*------------------------------------------------------
348
     * Pre  : Texture is init
348
     * Pre  : Texture is init

+ 1
- 1
include/SDLSystem.h 查看文件

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

+ 3
- 3
include/SkeletalModel.h 查看文件

1
 /*!
1
 /*!
2
- * \file SkeletalModel.h
2
+ * \file include/SkeletalModel.h
3
  * \brief This is the factored out skeletal model class
3
  * \brief This is the factored out skeletal model class
4
  *
4
  *
5
  * Defining UNIT_TEST_SKELETALMODEL builds SkeletalModel class as a console unit test
5
  * Defining UNIT_TEST_SKELETALMODEL builds SkeletalModel class as a console unit test
14
 #ifndef GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
14
 #ifndef GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
15
 #define GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
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
 typedef struct bone_tag_s
21
 typedef struct bone_tag_s

+ 1
- 1
include/Sound.h 查看文件

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

+ 3
- 3
include/System.h 查看文件

1
 /*!
1
 /*!
2
- * \file System.h
2
+ * \file include/System.h
3
  * \brief Mostly defines the interface of System implementations.
3
  * \brief Mostly defines the interface of System implementations.
4
  *
4
  *
5
  * Currently only SDL is used, but there was a GLUT implementation.
5
  * Currently only SDL is used, but there was a GLUT implementation.
11
 #ifndef GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
11
 #ifndef GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
12
 #define GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
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
 //! \todo Replace with unicode compatible key codes
17
 //! \todo Replace with unicode compatible key codes
18
 #define SYS_MOUSE_LEFT    6000
18
 #define SYS_MOUSE_LEFT    6000

include/mstl/Tree.h → include/Tree.h 查看文件


include/mstl/Vector.h → include/Vector.h 查看文件


include/hel/Vector3d.h → include/Vector3d.h 查看文件

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

include/hel/ViewVolume.h → include/ViewVolume.h 查看文件

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

+ 9
- 8
include/World.h 查看文件

30
 #define BAD_BLOOD  // For temp rendering use
30
 #define BAD_BLOOD  // For temp rendering use
31
 
31
 
32
 #ifdef BAD_BLOOD
32
 #ifdef BAD_BLOOD
33
-#   include "SkeletalModel.h"
33
+#include <SkeletalModel.h>
34
 #endif
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
 // Mirrors TombRaider class' room flags really
41
 // Mirrors TombRaider class' room flags really
103
 } sprite_seq_t;
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
 typedef struct texture_tri_s
111
 typedef struct texture_tri_s
111
 {
112
 {
210
 
211
 
211
 } sector_t;
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
 typedef struct room_mesh_s
215
 typedef struct room_mesh_s
215
 {
216
 {
216
 	Vector<int> adjacentRooms;
217
 	Vector<int> adjacentRooms;

+ 1
- 1
src/Camera.cpp 查看文件

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

+ 1
- 1
src/GLString.cpp 查看文件

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

src/hel/math.cpp → src/MatMath.cpp 查看文件

3
 #include <stdlib.h>
3
 #include <stdlib.h>
4
 #include <math.h>
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
 #define COMPUTE
10
 #define COMPUTE
11
 
11
 

src/hel/Matrix.cpp → src/Matrix.cpp 查看文件

22
 #include <stdio.h>
22
 #include <stdio.h>
23
 #include <math.h>
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 查看文件

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

+ 3
- 3
src/OpenGLMesh.cpp 查看文件

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

+ 15
- 14
src/OpenRaider.cpp 查看文件

137
 
137
 
138
 OpenRaider::~OpenRaider()
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
 	m_render.setMode(Render::modeDisabled);
143
 	m_render.setMode(Render::modeDisabled);
143
-	//sleep(1); // Why should we sleep here? -- xythobuz
144
+	sleep(1);
144
 
145
 
145
 	printf("Removing World...\n");
146
 	printf("Removing World...\n");
146
 	gWorld.destroy();
147
 	gWorld.destroy();
1141
 	display_memory_usage();
1142
 	display_memory_usage();
1142
 #endif
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
 	m_render.setMode(Render::modeDisabled);
1148
 	m_render.setMode(Render::modeDisabled);
1147
-	//sleep(2);
1149
+	sleep(1);
1148
 
1150
 
1149
 	// Draw game, level is loaded
1151
 	// Draw game, level is loaded
1150
 	m_render.setMode(Render::modeVertexLight);
1152
 	m_render.setMode(Render::modeVertexLight);
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
 	// if (gWorld.isCachedSkeletalModel(moveable[index].object_id))
1614
 	// if (gWorld.isCachedSkeletalModel(moveable[index].object_id))
1613
 	// {
1615
 	// {
1614
 	//   thing->modelId = m_render.add(sModel);
1616
 	//   thing->modelId = m_render.add(sModel);
1688
 		return;
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
 	j = object_id;
1694
 	j = object_id;
1694
 
1695
 
1695
 	// We only want one copy of the skeletal model in memory
1696
 	// We only want one copy of the skeletal model in memory
2023
 	// Assert common sense
2024
 	// Assert common sense
2024
 	if (index < 0 || !m_tombraider.isMeshValid(index))
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
 		gWorld.addMesh(NULL); // Filler, to make meshes array ids align
2028
 		gWorld.addMesh(NULL); // Filler, to make meshes array ids align
2028
 		printf("x");
2029
 		printf("x");
2029
 		fflush(stdout);
2030
 		fflush(stdout);
2038
 	// Mongoose 2002.08.30, Testing support for 'shootable' models ( traceable )
2039
 	// Mongoose 2002.08.30, Testing support for 'shootable' models ( traceable )
2039
 	m_tombraider.getMeshCollisionInfo(index, mesh->center, &mesh->radius);
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
 	// Mesh geometery, colors, etc
2043
 	// Mesh geometery, colors, etc
2043
 	m_tombraider.getMeshVertexArrays(index,
2044
 	m_tombraider.getMeshVertexArrays(index,
2044
 												&mesh->vertexCount, &mesh->vertices,
2045
 												&mesh->vertexCount, &mesh->vertices,
2266
 	float portalVertices[12];
2267
 	float portalVertices[12];
2267
 	count = m_tombraider.getRoomPortalCount(index);
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
 	r_mesh->adjacentRooms.reserve(count + 1);
2271
 	r_mesh->adjacentRooms.reserve(count + 1);
2271
 	r_mesh->adjacentRooms.setError(-1);
2272
 	r_mesh->adjacentRooms.setError(-1);
2272
 
2273
 
2304
 
2305
 
2305
 	// Physics/gameplay use /////////////////////////////
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
 	// List of sectors in this room
2310
 	// List of sectors in this room
2310
 	unsigned int sectorFlags;
2311
 	unsigned int sectorFlags;
2340
 	r_mesh->boxes.reserve(count);
2341
 	r_mesh->boxes.reserve(count);
2341
 	r_mesh->boxes.setError(0x0);
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
 	for (i = 0; !index && i < count; ++i)
2345
 	for (i = 0; !index && i < count; ++i)
2345
 	{
2346
 	{
2346
 		box_t *box = new box_t;
2347
 		box_t *box = new box_t;

+ 1
- 1
src/Particle.cpp 查看文件

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

src/hel/Quaternion.cpp → src/Quaternion.cpp 查看文件

21
 
21
 
22
 #include <math.h>
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 查看文件

779
 		return;
779
 		return;
780
 		break;
780
 		break;
781
 	case Render::modeLoadScreen:
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
 		drawLoadScreen();
783
 		drawLoadScreen();
784
 		return;
784
 		return;
785
 	default:
785
 	default:
1123
 	if (!rRoom || !rRoom->room)
1123
 	if (!rRoom || !rRoom->room)
1124
 		return;
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
 	if (!isVisible(rRoom->room->bbox_min, rRoom->room->bbox_max))
1128
 	if (!isVisible(rRoom->room->bbox_min, rRoom->room->bbox_max))
1128
 		return;
1129
 		return;
1129
 
1130
 
1218
 		return;
1219
 		return;
1219
 
1220
 
1220
 	// Mongoose 2002.01.01, Rendered while game is loading...
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
 	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
1223
 	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
1223
 	glLoadIdentity();
1224
 	glLoadIdentity();
1224
 
1225
 
1585
 	glPointSize(4.0);
1586
 	glPointSize(4.0);
1586
 	//glLineWidth(1.25);
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
 	glColor3fv(RED);
1590
 	glColor3fv(RED);
1590
 
1591
 
1591
 	glBegin(GL_POINTS);
1592
 	glBegin(GL_POINTS);
1662
 	glPointSize(4.0);
1663
 	glPointSize(4.0);
1663
 	//glLineWidth(1.25);
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
 	glColor3fv(c1);
1667
 	glColor3fv(c1);
1667
 
1668
 
1668
 	glBegin(GL_POINTS);
1669
 	glBegin(GL_POINTS);
2033
 
2034
 
2034
 	// If they pass NULL structs let it hang up - this is tmp
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
 	//if (!isVisible(r_mesh->center,	r_mesh->radius, r_mesh->bbox))
2038
 	//if (!isVisible(r_mesh->center,	r_mesh->radius, r_mesh->bbox))
2038
 	//{
2039
 	//{
2039
 	//	 return;
2040
 	//	 return;
2082
 #endif
2083
 #endif
2083
 
2084
 
2084
 
2085
 
2085
-	// Mongoose 2002.01.08, FIXME 'AMBIENT'
2086
+	//! \fixme 'AMBIENT' -- Mongoose 2002.01.08
2086
 	glColor3fv(WHITE);
2087
 	glColor3fv(WHITE);
2087
 
2088
 
2088
 	if (mMode == modeWireframe)
2089
 	if (mMode == modeWireframe)

+ 10
- 8
src/SDLSystem.cpp 查看文件

171
 {
171
 {
172
 #ifdef HAVE_SDL_TTF
172
 #ifdef HAVE_SDL_TTF
173
 #   ifdef FIXME
173
 #   ifdef FIXME
174
-	// FIXME: Filler
174
+	//! \fixme Filler
175
 	glBindTexture(GL_TEXTURE_2D, texture);
175
 	glBindTexture(GL_TEXTURE_2D, texture);
176
 	glBegin(GL_TRIANGLE_STRIP);
176
 	glBegin(GL_TRIANGLE_STRIP);
177
 	glTexCoord2f(texMinX, texMinY); glVertex2i(x,   y  );
177
 	glTexCoord2f(texMinX, texMinY); glVertex2i(x,   y  );
187
 void SDLSystem::glPrintf3d(float x, float y, float z, char *string)
187
 void SDLSystem::glPrintf3d(float x, float y, float z, char *string)
188
 {
188
 {
189
 #ifdef HAVE_SDL_TTF_FIXME
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
 	glBindTexture(GL_TEXTURE_2D, texture);
193
 	glBindTexture(GL_TEXTURE_2D, texture);
193
 	glBegin(GL_TRIANGLE_STRIP);
194
 	glBegin(GL_TRIANGLE_STRIP);
194
 	glTexCoord2f(texMinX, texMinY); glVertex2i(x,   y  );
195
 	glTexCoord2f(texMinX, texMinY); glVertex2i(x,   y  );
364
 
365
 
365
 				if (event.button.state == SDL_PRESSED)
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
 				else
370
 				else
370
 				{
371
 				{
371
-					handleKeyReleaseEvent(btn, 0); // FIXME: mod not used
372
+					handleKeyReleaseEvent(btn, 0); //! \fixme mod not used
372
 				}
373
 				}
373
 				break;
374
 				break;
374
 			case SDL_KEYUP:
375
 			case SDL_KEYUP:
504
 					}
505
 					}
505
 				}
506
 				}
506
 #else
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
 				if (key > 255 && key < 1000)
512
 				if (key > 255 && key < 1000)
511
 				{
513
 				{
512
 					key = 0;
514
 					key = 0;

+ 1
- 1
src/Sound.cpp 查看文件

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

+ 1
- 1
src/System.cpp 查看文件

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

+ 105
- 105
src/TombRaider.cpp 查看文件

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

src/hel/Vector3d.cpp → src/Vector3d.cpp 查看文件

21
 
21
 
22
 #include <math.h>
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 查看文件

23
 
23
 
24
 #include <math.h>
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 查看文件

537
 			break;
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
 		h = y;
544
 		h = y;
544
 		getHeightAtPosition(room, x, &h, z);
545
 		getHeightAtPosition(room, x, &h, z);

+ 1
- 1
test/GLString.cpp 查看文件

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

test/hel/math.cpp → test/MatMath.cpp 查看文件

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

test/hel/Matrix.cpp → test/Matrix.cpp 查看文件

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

test/hel/Quaternion.cpp → test/Quaternion.cpp 查看文件

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

+ 1
- 1
test/Sound.cpp 查看文件

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

+ 35
- 56
test/mtk_tga.cpp 查看文件

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
 #include <mtk_tga.h>
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
     fclose(f);
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
 

正在加载...
取消
保存