Thomas Buck преди 11 години
родител
ревизия
97e20e78b8

+ 2
- 2
include/BoundingVolume.h Целия файл

@@ -25,8 +25,8 @@
25 25
  ================================================================*/
26 26
 
27 27
 
28
-#ifndef GUARD__LIBHEL_MONGOOSE_BOUNDINGVOLUME_H_
29
-#define GUARD__LIBHEL_MONGOOSE_BOUNDINGVOLUME_H_
28
+#ifndef _BOUNDINGVOLUME_H_
29
+#define _BOUNDINGVOLUME_H_
30 30
 
31 31
 #include <MatMath.h>
32 32
 

+ 2
- 2
include/Camera.h Целия файл

@@ -35,8 +35,8 @@
35 35
  ================================================================*/
36 36
 
37 37
 
38
-#ifndef __HEL_MONGOOSE_CAMERA_H_
39
-#define __HEL_MONGOOSE_CAMERA_H_
38
+#ifndef _CAMERA_H_
39
+#define _CAMERA_H_
40 40
 
41 41
 #include <MatMath.h>
42 42
 #include <Matrix.h>

+ 2
- 2
include/Emitter.h Целия файл

@@ -23,8 +23,8 @@
23 23
  ================================================================*/
24 24
 
25 25
 
26
-#ifndef __FREYJA_MONGOOSE_EMITTER_H_
27
-#define __FREYJA_MONGOOSE_EMITTER_H_
26
+#ifndef _EMITTER_H_
27
+#define _EMITTER_H_
28 28
 
29 29
 #include <Particle.h>
30 30
 

+ 2
- 2
include/Entity.h Целия файл

@@ -24,8 +24,8 @@
24 24
  ================================================================*/
25 25
 
26 26
 
27
-#ifndef GUARD__HEL_MONGOOSE_ENTITY_H_
28
-#define GUARD__HEL_MONGOOSE_ENTITY_H_
27
+#ifndef _ENTITY_H_
28
+#define _ENTITY_H_
29 29
 
30 30
 #include <MatMath.h>
31 31
 #include <BoundingVolume.h>

+ 2
- 2
include/GLString.h Целия файл

@@ -6,8 +6,8 @@
6 6
  * \author xythobuz
7 7
  */
8 8
 
9
-#ifndef __MTK_MONGOOSE_GLSTRING_H_
10
-#define __MTK_MONGOOSE_GLSTRING_H_
9
+#ifndef _GLSTRING_H_
10
+#define _GLSTRING_H_
11 11
 
12 12
 /*!
13 13
  * \brief Internal data structure representing GL Strings

+ 2
- 2
include/List.h Целия файл

@@ -21,8 +21,8 @@
21 21
  ================================================================*/
22 22
 
23 23
 
24
-#ifndef __FREYJA_MONGOOSE_LIST_H_
25
-#define __FREYJA_MONGOOSE_LIST_H_
24
+#ifndef _LIST_H_
25
+#define _LIST_H_
26 26
 
27 27
 #include <stdlib.h>
28 28
 #include <limits.h>

+ 2
- 2
include/Map.h Целия файл

@@ -33,8 +33,8 @@
33 33
  ================================================================*/
34 34
 
35 35
 
36
-#ifndef __FREYJA_MONGOOSE_MAP_H_
37
-#define __FREYJA_MONGOOSE_MAP_H_
36
+#ifndef _MAP_H_
37
+#define _MAP_H_
38 38
 
39 39
 #include <stdlib.h>
40 40
 #include <stdio.h>

+ 2
- 2
include/MatMath.h Целия файл

@@ -20,8 +20,8 @@
20 20
  ================================================================*/
21 21
 
22 22
 
23
-#ifndef __FREYJA_MONGOOSE_MATH_H
24
-#define __FREYJA_MONGOOSE_MATH_H
23
+#ifndef _MATMATH_H
24
+#define _MATMATH_H
25 25
 
26 26
 #define HEL_PI           3.14159265358979323846  /* pi */
27 27
 #define HEL_PI_OVER_2    1.57079632679489661923  /* pi/2 */

+ 2
- 2
include/Matrix.h Целия файл

@@ -24,8 +24,8 @@
24 24
  ================================================================*/
25 25
 
26 26
 
27
-#ifndef GUARD__FREYJA_MONGOOSE_MATRIX_H_
28
-#define GUARD__FREYJA_MONGOOSE_MATRIX_H_
27
+#ifndef _MATRIX_H_
28
+#define _MATRIX_H_
29 29
 
30 30
 
31 31
 #include <MatMath.h>

+ 41
- 41
include/Network.h Целия файл

@@ -1,27 +1,27 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : UnRaider
5 5
  * Author  : Terry 'Mongoose' Hendrix II
6 6
  * Website : http://www.westga.edu/~stu7440/
7 7
  * Email   : stu7440@westga.edu
8 8
  * Object  : Network
9 9
  * License : No use w/o permission (C) 2002 Mongoose
10
- * Comments: 
10
+ * Comments:
11 11
  *
12 12
  *
13
- *           This file was generated using Mongoose's C++ 
13
+ *           This file was generated using Mongoose's C++
14 14
  *           template generator script.  <stu7440@westga.edu>
15
- * 
16
- *-- History ------------------------------------------------ 
15
+ *
16
+ *-- History ------------------------------------------------
17 17
  *
18 18
  * 2002.06.21:
19 19
  * Mongoose - Created
20 20
  ================================================================*/
21 21
 
22 22
 
23
-#ifndef __UNRAIDER_MONGOOSE_NETWORK_H_
24
-#define __UNRAIDER_MONGOOSE_NETWORK_H_
23
+#ifndef _NETWORK_H_
24
+#define _NETWORK_H_
25 25
 
26 26
 /*----------------------------------------------
27 27
  * The packet holds the data for the network
@@ -86,13 +86,13 @@ class Network
86 86
 
87 87
 	static Network *Instance();
88 88
 	/*------------------------------------------------------
89
-	 * Pre  : 
89
+	 * Pre  :
90 90
 	 * Post : Constructs the object of Network or
91 91
 	 *        returns pointer to it if previously allocated
92 92
 	 *
93 93
 	 *-- History ------------------------------------------
94 94
 	 *
95
-	 * 2001.08.24: 
95
+	 * 2001.08.24:
96 96
 	 * Mongoose - Created
97 97
 	 ------------------------------------------------------*/
98 98
 
@@ -103,18 +103,18 @@ class Network
103 103
 	 *
104 104
 	 *-- History ------------------------------------------
105 105
 	 *
106
-	 * 2002.06.21: 
106
+	 * 2002.06.21:
107 107
 	 * Mongoose - Created
108 108
 	 ------------------------------------------------------*/
109 109
 
110 110
 	////////////////////////////////////////////////////////////
111 111
 	// Public Accessors
112 112
 	////////////////////////////////////////////////////////////
113
-	
113
+
114 114
 	network_frame_t &getPiggyBack();
115 115
 	/*------------------------------------------------------
116
-	 * Pre  : 
117
-	 * Post : 
116
+	 * Pre  :
117
+	 * Post :
118 118
 	 *
119 119
 	 *-- History ------------------------------------------
120 120
 	 *
@@ -124,8 +124,8 @@ class Network
124 124
 
125 125
 	unsigned int getUID();
126 126
 	/*------------------------------------------------------
127
-	 * Pre  : 
128
-	 * Post : 
127
+	 * Pre  :
128
+	 * Post :
129 129
 	 *
130 130
 	 *-- History ------------------------------------------
131 131
 	 *
@@ -135,8 +135,8 @@ class Network
135 135
 
136 136
 	float getRandom(float from, float to);
137 137
 	/*------------------------------------------------------
138
-	 * Pre  : 
139
-	 * Post : 
138
+	 * Pre  :
139
+	 * Post :
140 140
 	 *
141 141
 	 *-- History ------------------------------------------
142 142
 	 *
@@ -146,8 +146,8 @@ class Network
146 146
 
147 147
 	int getPort();
148 148
 	/*------------------------------------------------------
149
-	 * Pre  : 
150
-	 * Post : 
149
+	 * Pre  :
150
+	 * Post :
151 151
 	 *
152 152
 	 *-- History ------------------------------------------
153 153
 	 *
@@ -161,8 +161,8 @@ class Network
161 161
 
162 162
 	void setDebug(bool toggle);
163 163
 	/*------------------------------------------------------
164
-	 * Pre  : 
165
-	 * Post : 
164
+	 * Pre  :
165
+	 * Post :
166 166
 	 *
167 167
 	 *-- History ------------------------------------------
168 168
 	 *
@@ -172,8 +172,8 @@ class Network
172 172
 
173 173
 	void setPort(unsigned int port);
174 174
 	/*------------------------------------------------------
175
-	 * Pre  : 
176
-	 * Post : 
175
+	 * Pre  :
176
+	 * Post :
177 177
 	 *
178 178
 	 *-- History ------------------------------------------
179 179
 	 *
@@ -183,8 +183,8 @@ class Network
183 183
 
184 184
 	void setBindHost(char *s);
185 185
 	/*------------------------------------------------------
186
-	 * Pre  : 
187
-	 * Post : 
186
+	 * Pre  :
187
+	 * Post :
188 188
 	 *
189 189
 	 *-- History ------------------------------------------
190 190
 	 *
@@ -194,8 +194,8 @@ class Network
194 194
 
195 195
 	void setRemoteHost(char *s);
196 196
 	/*------------------------------------------------------
197
-	 * Pre  : 
198
-	 * Post : 
197
+	 * Pre  :
198
+	 * Post :
199 199
 	 *
200 200
 	 *-- History ------------------------------------------
201 201
 	 *
@@ -205,8 +205,8 @@ class Network
205 205
 
206 206
 	void killServerThread();
207 207
 	/*------------------------------------------------------
208
-	 * Pre  : 
209
-	 * Post : 
208
+	 * Pre  :
209
+	 * Post :
210 210
 	 *
211 211
 	 *-- History ------------------------------------------
212 212
 	 *
@@ -216,8 +216,8 @@ class Network
216 216
 
217 217
 	void killClientThread();
218 218
 	/*------------------------------------------------------
219
-	 * Pre  : 
220
-	 * Post : 
219
+	 * Pre  :
220
+	 * Post :
221 221
 	 *
222 222
 	 *-- History ------------------------------------------
223 223
 	 *
@@ -227,8 +227,8 @@ class Network
227 227
 
228 228
 	void spawnServerThread();
229 229
 	/*------------------------------------------------------
230
-	 * Pre  : 
231
-	 * Post : 
230
+	 * Pre  :
231
+	 * Post :
232 232
 	 *
233 233
 	 *-- History ------------------------------------------
234 234
 	 *
@@ -238,8 +238,8 @@ class Network
238 238
 
239 239
 	void spawnClientThread();
240 240
 	/*------------------------------------------------------
241
-	 * Pre  : 
242
-	 * Post : 
241
+	 * Pre  :
242
+	 * Post :
243 243
 	 *
244 244
 	 *-- History ------------------------------------------
245 245
 	 *
@@ -249,8 +249,8 @@ class Network
249 249
 
250 250
 	int runServer();
251 251
 	/*------------------------------------------------------
252
-	 * Pre  : 
253
-	 * Post : 
252
+	 * Pre  :
253
+	 * Post :
254 254
 	 *
255 255
 	 *-- History ------------------------------------------
256 256
 	 *
@@ -260,8 +260,8 @@ class Network
260 260
 
261 261
 	void runClient();
262 262
 	/*------------------------------------------------------
263
-	 * Pre  : 
264
-	 * Post : 
263
+	 * Pre  :
264
+	 * Post :
265 265
 	 *
266 266
 	 *-- History ------------------------------------------
267 267
 	 *
@@ -277,12 +277,12 @@ class Network
277 277
 
278 278
 	Network();
279 279
 	/*------------------------------------------------------
280
-	 * Pre  : 
280
+	 * Pre  :
281 281
 	 * Post : Constructs an object of Network
282 282
 	 *
283 283
 	 *-- History ------------------------------------------
284 284
 	 *
285
-	 * 2002.06.21: 
285
+	 * 2002.06.21:
286 286
 	 * Mongoose - Created
287 287
 	 ------------------------------------------------------*/
288 288
 

+ 2
- 2
include/OpenGLMesh.h Целия файл

@@ -7,8 +7,8 @@
7 7
  * \todo Unify the parallel systems here, arrays and the allocate/set
8 8
  */
9 9
 
10
-#ifndef GUARD__OPENRAIDER_MONGOOSE_OPENGLMESH_H_
11
-#define GUARD__OPENRAIDER_MONGOOSE_OPENGLMESH_H_
10
+#ifndef _OPENGLMESH_H_
11
+#define _OPENGLMESH_H_
12 12
 
13 13
 #include <MatMath.h>
14 14
 

+ 2
- 2
include/OpenRaider.h Целия файл

@@ -23,8 +23,8 @@
23 23
  ================================================================*/
24 24
 
25 25
 
26
-#ifndef GUARD__OPENRAIDER_MONGOOSE_OPENRAIDER_H_
27
-#define GUARD__OPENRAIDER_MONGOOSE_OPENRAIDER_H_
26
+#ifndef _OPENRAIDER_H_
27
+#define _OPENRAIDER_H_
28 28
 
29 29
 
30 30
 #include <List.h>

+ 2
- 2
include/Particle.h Целия файл

@@ -5,8 +5,8 @@
5 5
  * \author Mongoose
6 6
  */
7 7
 
8
-#ifndef __FREYJA_MONGOOSE_PARTICLE_H_
9
-#define __FREYJA_MONGOOSE_PARTICLE_H_
8
+#ifndef _PARTICLE_H_
9
+#define _PARTICLE_H_
10 10
 
11 11
 #include <MatMath.h>
12 12
 

+ 2
- 2
include/Quaternion.h Целия файл

@@ -24,8 +24,8 @@
24 24
  ================================================================*/
25 25
 
26 26
 
27
-#ifndef GUARD__HEL_MONGOOSE_QUATERNION_H_
28
-#define GUARD__HEL_MONGOOSE_QUATERNION_H_
27
+#ifndef _QUATERNION_H_
28
+#define _QUATERNION_H_
29 29
 
30 30
 #include <MatMath.h>
31 31
 

+ 2
- 2
include/Render.h Целия файл

@@ -20,8 +20,8 @@
20 20
  ================================================================*/
21 21
 
22 22
 
23
-#ifndef GUARD__RENDER_MONGOOSE_RENDER_H_
24
-#define GUARD__RENDER_MONGOOSE_RENDER_H_
23
+#ifndef _RENDER_H_
24
+#define _RENDER_H_
25 25
 
26 26
 #include <List.h>
27 27
 #include <Vector.h>

+ 2
- 2
include/SDLSystem.h Целия файл

@@ -20,8 +20,8 @@
20 20
  ================================================================*/
21 21
 
22 22
 
23
-#ifndef GUARD__UNRAIDER_MONGOOSE_SDLSYSTEM_H_
24
-#define GUARD__UNRAIDER_MONGOOSE_SDLSYSTEM_H_
23
+#ifndef _SDLSYSTEM_H_
24
+#define _SDLSYSTEM_H_
25 25
 
26 26
 #ifdef SDL_INTERFACE
27 27
 #   include <SDL/SDL.h>

+ 2
- 2
include/SkeletalModel.h Целия файл

@@ -11,8 +11,8 @@
11 11
  * Better animation system in general - this is memory wasteful
12 12
  */
13 13
 
14
-#ifndef GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
15
-#define GUARD__OPENRAIDER_MONGOOSE_SKELETALMODEL_H_
14
+#ifndef _SKELETALMODEL_H_
15
+#define _SKELETALMODEL_H_
16 16
 
17 17
 #include <Vector.h>
18 18
 #include <MatMath.h>

+ 2
- 2
include/Sound.h Целия файл

@@ -6,8 +6,8 @@
6 6
  * \author xythobuz
7 7
  */
8 8
 
9
-#ifndef __OPENRAIDER_MONGOOSE_SOUND_H_
10
-#define __OPENRAIDER_MONGOOSE_SOUND_H_
9
+#ifndef _SOUND_H_
10
+#define _SOUND_H_
11 11
 
12 12
 /*!
13 13
  * \brief This is the audio manager for OpenRaider

+ 2
- 2
include/System.h Целия файл

@@ -8,8 +8,8 @@
8 8
  * \author xythobuz
9 9
  */
10 10
 
11
-#ifndef GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
12
-#define GUARD__UNRAIDER_MONGOOSE_SYSTEM_H_
11
+#ifndef _SYSTEM_H_
12
+#define _SYSTEM_H_
13 13
 
14 14
 #include <Map.h>
15 15
 #include <Vector.h>

+ 2
- 2
include/Texture.h Целия файл

@@ -29,8 +29,8 @@
29 29
  ==========================================================================*/
30 30
 
31 31
 
32
-#ifndef __MTK_MONGOOSE_MTKTEXTURE_H
33
-#define __MTK_MONGOOSE_MTKTEXTURE_H
32
+#ifndef _TEXTURE_H
33
+#define _TEXTURE_H
34 34
 
35 35
 #include <stdio.h>
36 36
 

+ 2
- 2
include/TombRaider.h Целия файл

@@ -66,8 +66,8 @@
66 66
  *                TR Rosetta Stone ( TombRaider pak format specs )
67 67
  ================================================================*/
68 68
 
69
-#ifndef __OPENRAIDER_MONGOOSE_TOMBRAIDER_H_
70
-#define __OPENRAIDER_MONGOOSE_TOMBRAIDER_H_
69
+#ifndef _TOMBRAIDER_H_
70
+#define _TOMBRAIDER_H_
71 71
 
72 72
 #ifdef WIN32
73 73
 // Have to remove GCC packing, by removing in preprocessor

+ 7
- 7
include/TombRaider1.h Целия файл

@@ -1,6 +1,6 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : OpenRaider
5 5
  * Author  : Mongoose
6 6
  * Website : http://www.westga.edu/~stu7440/
@@ -9,17 +9,17 @@
9 9
  * License : GPL, See file COPYING for details
10 10
  * Comments: Loads TR 1 states and etc
11 11
  *
12
- *           This file was generated using Mongoose's C++ 
12
+ *           This file was generated using Mongoose's C++
13 13
  *           template generator script.  <stu7440@westga.edu>
14
- * 
15
- *-- History ------------------------------------------------ 
14
+ *
15
+ *-- History ------------------------------------------------
16 16
  *
17 17
  * Mongoose - Created, based on:
18 18
  *                TR Rosetta Stone ( TombRaider pak format specs )
19 19
  ================================================================*/
20 20
 
21
-#ifndef __OPENRAIDER_MONGOOSE_TOMBRAIDER1_H_
22
-#define __OPENRAIDER_MONGOOSE_TOMBRAIDER1_H_
21
+#ifndef _TOMBRAIDER1_H_
22
+#define _TOMBRAIDER1_H_
23 23
 
24 24
 
25 25
 class TombRaider1
@@ -30,7 +30,7 @@ public:
30 30
 
31 31
 	~TombRaider1();
32 32
 
33
-	enum Items 
33
+	enum Items
34 34
    {
35 35
 		Lara = 0,
36 36
 		PistolAnimation  = 1,

+ 9
- 4
include/TombRaider5.h Целия файл

@@ -1,20 +1,23 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : OpenRaider
5 5
  * Author  : Mongoose
6 6
  * Website : http://www.westga.edu/~stu7440/
7 7
  * Email   : stu7440@westga.edu
8
- * Object  : 
8
+ * Object  :
9 9
  * License : GPL, also (C) 2002 Mongoose
10
- * Comments: 
10
+ * Comments:
11 11
  *
12
- *-- History ------------------------------------------------ 
12
+ *-- History ------------------------------------------------
13 13
  *
14 14
  * 2002.04.04:
15 15
  * Mongoose - Created, based on work by ? ( one of the TRE guys )
16 16
  ================================================================*/
17 17
 
18
+#ifndef _TOMBRAIDER5_H_
19
+#define _TOMBRAIDER5_H_
20
+
18 21
 typedef enum
19 22
 {
20 23
 		TR4_OBJ_LARA = 0,
@@ -484,3 +487,5 @@ typedef enum
484 487
 		TR4_OBJ_MISC_SPRITES = 464
485 488
 
486 489
 } tr4_objects_t;
490
+
491
+#endif

+ 2
- 2
include/Tree.h Целия файл

@@ -40,8 +40,8 @@
40 40
  ================================================================*/
41 41
 
42 42
 
43
-#ifndef __FREYJA_MONGOOSE_TREE_H_
44
-#define __FREYJA_MONGOOSE_TREE_H_
43
+#ifndef _TREE_H_
44
+#define _TREE_H_
45 45
 
46 46
 #include <stdlib.h>
47 47
 #include <stdio.h>

+ 2
- 2
include/Vector.h Целия файл

@@ -21,8 +21,8 @@
21 21
  ================================================================*/
22 22
 
23 23
 
24
-#ifndef __FREYJA_MONGOOSE_VECTOR_H_
25
-#define __FREYJA_MONGOOSE_VECTOR_H_
24
+#ifndef _VECTOR_H_
25
+#define _VECTOR_H_
26 26
 
27 27
 #include <stdlib.h>
28 28
 #include <stdio.h>

+ 2
- 2
include/Vector3d.h Целия файл

@@ -24,8 +24,8 @@
24 24
  ================================================================*/
25 25
 
26 26
 
27
-#ifndef GUARD__HEL_MONGOOSE_VECTOR3D_H_
28
-#define GUARD__HEL_MONGOOSE_VECTOR3D_H_
27
+#ifndef _VECTOR3D_H_
28
+#define _VECTOR3D_H_
29 29
 
30 30
 
31 31
 #include <MatMath.h>

+ 2
- 2
include/ViewVolume.h Целия файл

@@ -24,8 +24,8 @@
24 24
  ================================================================*/
25 25
 
26 26
 
27
-#ifndef GUARD__HEL_MONGOOSE_VIEWVOLUME_H_
28
-#define GUARD__HEL_MONGOOSE_VIEWVOLUME_H_
27
+#ifndef _VIEWVOLUME_H_
28
+#define _VIEWVOLUME_H_
29 29
 
30 30
 #include <Matrix.h>
31 31
 #include <BoundingVolume.h>

+ 2
- 2
include/World.h Целия файл

@@ -24,8 +24,8 @@
24 24
  ================================================================*/
25 25
 
26 26
 
27
-#ifndef GUARD__OPENRAIDER_MONGOOSE_WORLD_H_
28
-#define GUARD__OPENRAIDER_MONGOOSE_WORLD_H_
27
+#ifndef _WORLD_H_
28
+#define _WORLD_H_
29 29
 
30 30
 #define BAD_BLOOD  // For temp rendering use
31 31
 

+ 2
- 2
include/memory_test.h Целия файл

@@ -21,8 +21,8 @@
21 21
 
22 22
 #include <cstddef>
23 23
 
24
-#ifndef __MTK_MONGOOSE_MEMORY_TEST_H_
25
-#define __MTK_MONGOOSE_MEMORY_TEST_H_
24
+#ifndef _MEMORY_TEST_H_
25
+#define _MEMORY_TEST_H_
26 26
 
27 27
 #if defined(DEBUG_MEMORY) && !defined(UNIT_TEST_MEMORY)
28 28
 

+ 16
- 16
include/mtk_tga.h Целия файл

@@ -1,31 +1,31 @@
1 1
 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2 2
 /*================================================================
3
- * 
3
+ *
4 4
  * Project : Freyja
5 5
  * Author  : Mongoose
6 6
  * Website : http://www.westga.edu/~stu7440/
7 7
  * Email   : stu7440@westga.edu
8
- * Object  : 
8
+ * Object  :
9 9
  * License : GPL See file COPYING, also (C) 2000 Mongoose
10 10
  * Comments: TGA plug-in
11 11
  *
12 12
  *
13
- *           This file was generated using Mongoose's C++ 
13
+ *           This file was generated using Mongoose's C++
14 14
  *           template generator script.  <stu7440@westga.edu>
15
- * 
16
- *-- History ------------------------------------------------ 
15
+ *
16
+ *-- History ------------------------------------------------
17 17
  *
18 18
  * 2000-10-15:
19 19
  * Mongoose - Created
20 20
  ================================================================*/
21 21
 
22
-#ifndef __MONGOOSE_TGA_H
23
-#define __MONGOOSE_TGA_H
22
+#ifndef _MTK_TGA_H
23
+#define _MTK_TGA_H
24 24
 
25 25
 #include <stdio.h>
26 26
 
27 27
 
28
-typedef enum 
28
+typedef enum
29 29
 {
30 30
   TGA_TYPE__NO_DATA    = 0,
31 31
   TGA_TYPE__MAPPED     = 1,
@@ -40,24 +40,24 @@ typedef enum
40 40
 } tga_type_t;
41 41
 
42 42
 
43
-typedef struct mtk_image_tga_s 
43
+typedef struct mtk_image_tga_s
44 44
 {
45 45
   unsigned char comment_lenght;       /* Number of bytes in comment */
46 46
   unsigned char colormap_type;        /* 0 No colormap; 1 Has colormap  */
47 47
   unsigned char image_type;           /* 1 Colormapped, 2 Unmapped;
48 48
 					 9 Colormapped RLE; 10 Unmapped RLE */
49
-  
49
+
50 50
   unsigned short colormap_index;      /* Index of first color map entry */
51 51
   unsigned short colormap_lenght;     /* Number of color map entries */
52 52
   unsigned char colormap_bbp;         /* 16, 24, or 32 bits per pixel format */
53
-  
53
+
54 54
   unsigned short origin_x;            /* X coor of lower-left corner */
55 55
   unsigned short origin_y;            /* Y coor of lower-left corner */
56 56
   unsigned short width;               /* Width in pixels */
57 57
   unsigned short height;              /* Height in pixels */
58 58
   unsigned char bpp;                  /* Number of bits in a pixel index */
59 59
   unsigned char desc_flags;           /* Various magic bits */
60
-  
60
+
61 61
 } mtk_image_tga_t;
62 62
 
63 63
 
@@ -72,7 +72,7 @@ typedef struct mtk_image_tga_s
72 72
    * Mongoose - Created
73 73
    ------------------------------------------------------*/
74 74
 
75
-  int mtk_image__tga_load(FILE *f, unsigned char **image, 
75
+  int mtk_image__tga_load(FILE *f, unsigned char **image,
76 76
 			 unsigned int *width, unsigned int *height, char *type);
77 77
   /*------------------------------------------------------
78 78
    * Pre  : Filename is a valid image file
@@ -84,10 +84,10 @@ typedef struct mtk_image_tga_s
84 84
    * Mongoose - Created
85 85
    ------------------------------------------------------*/
86 86
 
87
-  int mtk_image__tga_save(FILE *f, unsigned char *image, 
87
+  int mtk_image__tga_save(FILE *f, unsigned char *image,
88 88
 			  unsigned int width, unsigned int height, char type);
89 89
   /*------------------------------------------------------
90
-   * Pre  : 
90
+   * Pre  :
91 91
    * Post : Image is saved to diskfile if valid and can
92 92
    *
93 93
    *-- History ------------------------------------------
@@ -102,7 +102,7 @@ typedef struct mtk_image_tga_s
102 102
 				   char type,
103 103
 				   char *s, ...);
104 104
   /*------------------------------------------------------
105
-   * Pre  : 
105
+   * Pre  :
106 106
    * Post : Image is saved to diskfile if valid and can
107 107
    *
108 108
    *-- History ------------------------------------------

Loading…
Отказ
Запис