Selaa lähdekoodia

Improved documentation

Thomas Buck 10 vuotta sitten
vanhempi
commit
d04a65c67f
5 muutettua tiedostoa jossa 190 lisäystä ja 434 poistoa
  1. 146
    291
      include/Camera.h
  2. 22
    79
      include/SkeletalModel.h
  3. 12
    13
      include/tga.h
  4. 5
    32
      src/Camera.cpp
  5. 5
    19
      src/SkeletalModel.cpp

+ 146
- 291
include/Camera.h Näytä tiedosto

@@ -1,40 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file include/Camera.h
3
+ * \brief OpenGL camera class
3 4
  *
4
- * Project : Hel
5
- * Author  : Mongoose
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : Camera
9
- * License : No use w/o permission (C) 2001 Mongoose
10
- * Comments: OpenGL camera class for Freyja
11
- *
12
- *           This file was generated using Mongoose's C++
13
- *           template generator script.  <stu7440@westga.edu>
14
- *
15
- *-- History ------------------------------------------------
16
- *
17
- * 2002.12.16:
18
- * Mongoose - Removed perspective setting and OpenGL dependency
19
- *            API changes to reflect new direction of this object:
20
- *              Removing outdated algorithms and code
21
- *              And refactoring the class in general
22
- *
23
- * 2001.06.06:
24
- * Mongoose - Moving GLU code into here to setup break up
25
- *            into Camera base class, DynamicCamera,
26
- *            and GLUCamera child classes
27
- *
28
- * 2001.06.04:
29
- * Mongoose - Quaternion based compile option
30
- *
31
- * 2001.05.18:
32
- * Mongoose - Created, based on my old GL camera code
33
- *            that has been used in GooseEgg since alpha
34
- *            and algorithms from Yuri Zhivago's trview
35
- ================================================================*/
36
-
37
-
5
+ * \author Mongoose
6
+ */
38 7
 #ifndef _CAMERA_H_
39 8
 #define _CAMERA_H_
40 9
 
@@ -42,8 +11,10 @@
42 11
 #include <Matrix.h>
43 12
 #include <Quaternion.h>
44 13
 
45
-enum camera_command                /* Interactive camera control */
46
-{
14
+/*!
15
+ * \brief Commands for interactive camera control
16
+ */
17
+enum camera_command {
47 18
   CAMERA_MOVE_FORWARD = 1,
48 19
   CAMERA_MOVE_BACKWARD,
49 20
   CAMERA_MOVE_UP,
@@ -58,102 +29,81 @@ enum camera_command                /* Interactive camera control */
58 29
   CAMERA_MOVE_RIGHT
59 30
 };
60 31
 
61
-enum CameraFlags
62
-{
63
-    Camera_FlyMode = 1
32
+/*!
33
+ * \brief Flags a camera can have
34
+ */
35
+enum CameraFlags {
36
+    Camera_FlyMode = (1 << 0) //!< Camera is flying free?
64 37
 };
65 38
 
66
-
67
-class Camera
68
-{
69
- public:
70
-
71
-    ////////////////////////////////////////////////////////////
72
-    // Constructors
73
-    ////////////////////////////////////////////////////////////
74
-
39
+/*!
40
+ * \brief OpenGL camera class
41
+ *
42
+ * 2002.12.16:
43
+ * Mongoose - Removed perspective setting and OpenGL dependency
44
+ *            API changes to reflect new direction of this object:
45
+ *              Removing outdated algorithms and code
46
+ *              And refactoring the class in general
47
+ *
48
+ * 2001.06.06:
49
+ * Mongoose - Moving GLU code into here to setup break up
50
+ *            into Camera base class, DynamicCamera,
51
+ *            and GLUCamera child classes
52
+ *
53
+ * 2001.06.04:
54
+ * Mongoose - Quaternion based compile option
55
+ *
56
+ * 2001.05.18:
57
+ * Mongoose - Created, based on my old GL camera code
58
+ *            that has been used in GooseEgg since alpha
59
+ *            and algorithms from Yuri Zhivago's trview
60
+ */
61
+class Camera {
62
+public:
63
+    /*!
64
+     * \brief Constructs an object of Camera
65
+     */
75 66
     Camera();
76
-    /*------------------------------------------------------
77
-     * Pre  :
78
-     * Post : Constructs an object of Camera
79
-     *
80
-     *-- History ------------------------------------------
81
-     *
82
-     * 2001.05.18:
83
-     * Mongoose - Created
84
-     ------------------------------------------------------*/
85 67
 
68
+    /*!
69
+     * \brief Deconstructs an object of Camera
70
+     */
86 71
     ~Camera();
87
-    /*------------------------------------------------------
88
-     * Pre  : Camera object is allocated
89
-     * Post : Deconstructs an object of Camera
90
-     *
91
-     *-- History ------------------------------------------
92
-     *
93
-     * 2001.05.18:
94
-     * Mongoose - Created
95
-     ------------------------------------------------------*/
96
-
97
-
98
-    ////////////////////////////////////////////////////////////
99
-    // Public Accessors
100
-    ////////////////////////////////////////////////////////////
101 72
 
73
+    /*!
74
+     * \brief Get this cameras ID
75
+     * \returns id
76
+     */
102 77
     unsigned int getId();
103
-    /*------------------------------------------------------
104
-     * Pre  :
105
-     * Post : Returns this camera's id
106
-     *
107
-     *-- History ------------------------------------------
108
-     *
109
-     * 2001.05.18:
110
-     * Mongoose - Created
111
-     ------------------------------------------------------*/
112 78
 
79
+    /*!
80
+     * \brief Returns the current position
81
+     * \param pos where the position will be stored
82
+     */
113 83
     void getPosition(vec3_t pos);
114
-    /*------------------------------------------------------
115
-     * Pre  :
116
-     * Post : Returns current position
117
-     *
118
-     *-- History ------------------------------------------
119
-     *
120
-     * 2002.06.16:
121
-     * Mongoose - Created
122
-     ------------------------------------------------------*/
123 84
 
85
+    /*!
86
+     * \brief Returns the up vector
87
+     * \param up where the up vector will be stored
88
+     */
124 89
     void getUp(vec3_t up);
125
-    /*------------------------------------------------------
126
-     * Pre  :
127
-     * Post : Returns up vector
128
-     *
129
-     *-- History ------------------------------------------
130
-     *
131
-     * 2001.05.18:
132
-     * Mongoose - Created
133
-     ------------------------------------------------------*/
134 90
 
91
+    /*!
92
+     * \brief Get the target currently looked at
93
+     * \param target where the target will be stored
94
+     */
135 95
     void getTarget(vec3_t target);
136
-    /*------------------------------------------------------
137
-     * Pre  :
138
-     * Post : Returns target ( look at pos )
139
-     *
140
-     *-- History ------------------------------------------
141
-     *
142
-     * 2001.05.18:
143
-     * Mongoose - Created
144
-     ------------------------------------------------------*/
145 96
 
97
+    /*!
98
+     * \brief Get current yaw in degrees
99
+     * \returns yaw in degrees
100
+     */
146 101
     float getYaw();
147
-    /*------------------------------------------------------
148
-     * Pre  : Get current yaw in degrees
149
-     * Post :
150
-     *
151
-     *-- History ------------------------------------------
152
-     *
153
-     * 2002.06.22:
154
-     * Mongoose - Created
155
-     ------------------------------------------------------*/
156 102
 
103
+    /*!
104
+     * \brief Get angle/yaw of camera
105
+     * \returns theta angle/yaw of camera
106
+     */
157 107
     double getRadianYaw();
158 108
     /*------------------------------------------------------
159 109
      * Pre  :
@@ -165,206 +115,111 @@ class Camera
165 115
      * Mongoose - Created
166 116
      ------------------------------------------------------*/
167 117
 
118
+    /*!
119
+     * \brief Get current angle/pitch
120
+     * \returns current pitch in degrees
121
+     */
168 122
     float getPitch();
169
-    /*------------------------------------------------------
170
-     * Pre  : Get current pitch in degrees
171
-     * Post :
172
-     *
173
-     *-- History ------------------------------------------
174
-     *
175
-     * 2002.06.22:
176
-     * Mongoose - Created
177
-     ------------------------------------------------------*/
178 123
 
124
+    /*!
125
+     * \brief Get angle/pitch of camera
126
+     * \returns phi angle/pitch of camera
127
+     */
179 128
     double getRadianPitch();
180
-    /*------------------------------------------------------
181
-     * Pre  :
182
-     * Post : Returns phi angle/pitch of camera
183
-     *
184
-     *-- History ------------------------------------------
185
-     *
186
-     * 2001.05.26:
187
-     * Mongoose - Created
188
-     ------------------------------------------------------*/
189 129
 
130
+    /*!
131
+     * \brief Check if the coordinate is behind camera eye
132
+     * \param x X coordinate to check
133
+     * \param z Z coordinate to check
134
+     * \returns true if (x, z) is behind camera eye
135
+     */
190 136
     bool isBehind(int x, int z);
191
-    /*------------------------------------------------------
192
-     * Pre  :
193
-     * Post : Returns true if (x, z) is behind camera eye
194
-     *
195
-     *-- History ------------------------------------------
196
-     *
197
-     * 2001.05.26:
198
-     * Mongoose - Created
199
-     ------------------------------------------------------*/
200
-
201
-
202
-    ////////////////////////////////////////////////////////////
203
-    // Public Mutators
204
-    ////////////////////////////////////////////////////////////
205 137
 
138
+    /*!
139
+     * \brief Rotate the camera
140
+     * \param angle angle in radians
141
+     * \param x X coordinate of axis
142
+     * \param y Y coordinate of axis
143
+     * \param z Z coordinate of axis
144
+     */
206 145
     void rotate(float angle, float x, float y, float z);
207
-    /*------------------------------------------------------
208
-     * Pre  : x,y,z axis; angle in radians
209
-     * Post : Rotates camera
210
-     *
211
-     *-- History ------------------------------------------
212
-     *
213
-     * 2001.06.04:
214
-     * Mongoose - Created
215
-     ------------------------------------------------------*/
216 146
 
147
+    /*!
148
+     * \brief Set Camera position
149
+     * \param x new X coordinate
150
+     * \param y new Y coordinate
151
+     * \param z new Z coordinate
152
+     */
217 153
     void translate(float x, float y, float z);
218
-    /*------------------------------------------------------
219
-     * Pre  :
220
-     * Post : Camera position is set to x,y,z
221
-     *
222
-     *-- History ------------------------------------------
223
-     *
224
-     * 2001.05.18:
225
-     * Mongoose - Created
226
-     ------------------------------------------------------*/
227 154
 
155
+    /*!
156
+     * \brief Set the Camera to its initial state
157
+     */
228 158
     void reset();
229
-    /*------------------------------------------------------
230
-     * Pre  :
231
-     * Post : Camera is set to inital state
232
-     *
233
-     *-- History ------------------------------------------
234
-     *
235
-     * 2001.05.18:
236
-     * Mongoose - Created
237
-     ------------------------------------------------------*/
238 159
 
160
+    /*!
161
+     * \brief Sets the X rotation delta
162
+     * \param angle thetas rotation delta in degrees
163
+     */
239 164
     void setSensitivityX(float angle);
240
-    /*------------------------------------------------------
241
-     * Pre  : angle is theta's rotation delta in degrees
242
-     * Post : Sets rotation delta
243
-     *
244
-     *-- History ------------------------------------------
245
-     *
246
-     * 2001.06.04:
247
-     * Mongoose - Created
248
-     ------------------------------------------------------*/
249 165
 
166
+    /*!
167
+     * \brief Sets the Y rotation delta
168
+     * \param angle thetas rotation delta in degrees
169
+     */
250 170
     void setSensitivityY(float angle);
251
-    /*------------------------------------------------------
252
-     * Pre  : angle is theta's rotation delta in degrees
253
-     * Post : Sets rotation delta
254
-     *
255
-     *-- History ------------------------------------------
256
-     *
257
-     * 2001.06.04:
258
-     * Mongoose - Created
259
-     ------------------------------------------------------*/
260 171
 
172
+    /*!
173
+     * \brief Sends interactive command to camera
174
+     * \param cmd valid camera command
175
+     */
261 176
     void command(enum camera_command cmd);
262
-    /*------------------------------------------------------
263
-     * Pre  : Command is valid camera command
264
-     * Post : Sends interactive command to camera
265
-     *
266
-     *-- History ------------------------------------------
267
-     *
268
-     * 2001.05.18:
269
-     * Mongoose - Created
270
-     ------------------------------------------------------*/
271 177
 
272
-   void setSpeed(float s);
273
-   /*------------------------------------------------------
274
-    * Pre  : s is 256 or greater in general
275
-    * Post : Sets 'speed'
276
-    *
277
-    *-- History ------------------------------------------
278
-    *
279
-    * 2002.01.02:
280
-    * Mongoose - Created
281
-    ------------------------------------------------------*/
178
+    /*!
179
+     * \brief Sets speed
180
+     * \param s new speed, is 256 or greater in general
181
+     */
182
+    void setSpeed(float s);
282 183
 
184
+    /*!
185
+     * \brief Updates view target
186
+     */
283 187
     void update();
284
-    /*------------------------------------------------------
285
-     * Pre  :
286
-     * Post : Updates view target
287
-     *
288
-     *-- History ------------------------------------------
289
-     *
290
-     * 2001.05.18:
291
-     * Mongoose - Created
292
-     ------------------------------------------------------*/
293 188
 
189
+    /*!
190
+     * \brief Set current position
191
+     * \param pos new position
192
+     */
294 193
     void setPosition(vec3_t pos);
295
-    /*------------------------------------------------------
296
-     * Pre  : Set current position
297
-     * Post :
298
-     *
299
-     *-- History ------------------------------------------
300
-     *
301
-     * 2002.06.16:
302
-     * Mongoose - Created
303
-     ------------------------------------------------------*/
304 194
 
195
+    /*!
196
+     * \brief Sets the up vector
197
+     * \param up new up vector
198
+     */
305 199
     void setUp(vec3_t up);
306
-    /*------------------------------------------------------
307
-     * Pre  :
308
-     * Post : Sets up vector
309
-     *
310
-     *-- History ------------------------------------------
311
-     *
312
-     * 2001.05.18:
313
-     * Mongoose - Created
314
-     ------------------------------------------------------*/
315 200
 
201
+    /*!
202
+     * \brief Sets target (look at pos)
203
+     * \param target new target
204
+     */
316 205
     void setTarget(vec3_t target);
317
-    /*------------------------------------------------------
318
-     * Pre  :
319
-     * Post : Sets target ( look at pos )
320
-     *
321
-     *-- History ------------------------------------------
322
-     *
323
-     * 2001.05.18:
324
-     * Mongoose - Created
325
-     ------------------------------------------------------*/
326
-
327
-
328
- private:
329
-
330
-    ////////////////////////////////////////////////////////////
331
-    // Private Accessors
332
-    ////////////////////////////////////////////////////////////
333
-
334
-
335
-    ////////////////////////////////////////////////////////////
336
-    // Private Mutators
337
-    ////////////////////////////////////////////////////////////
338
-
339
-    unsigned int mId;           /* Unquie id */
340
-
341
-    Quaternion mQ;              /* Quaternion for rotation */
342
-
343
-    unsigned int mFlags;        /* For testing with flags  */
344
-
345
-    double mPos[4];             /* Location in 3 space (aka eye) */
346
-
347
-    double mTarget[4];          /* Postition we're looking at  */
348
-
349
-    double mUp[4];              /* Up vector  */
350
-
351
-    double mSide[4];            /* Side vector  */
352
-
353
-    double mViewDistance;      /* Distance from target */
354
-
355
-    double mTranslateDelta;    /* Step size to move */
356
-
357
-    double mRotateDelta;       /* Radians to rotate  Y */
358
-
359
-    double mTheta;              /* View angle  Y */
360
-
361
-    double mRotateDelta2;      /* Radians to rotate  Z */
362
-
363
-    double mTheta2;             /* View angle  Z */
364
-
365
-    bool mUpdate;               /* Check to see if view needs updating */
366 206
 
367
-    static unsigned int mCounter;   /* Id system use */
207
+private:
208
+    unsigned int mId;             //!< Unique id
209
+    Quaternion mQ;                //!< Quaternion for rotation
210
+    unsigned int mFlags;          //!< For testing with flags
211
+    double mPos[4];               //!< Location in 3 space (aka eye)
212
+    double mTarget[4];            //!< Postition we're looking at
213
+    double mUp[4];                //!< Up vector
214
+    double mSide[4];              //!< Side vector
215
+    double mViewDistance;         //!< Distance from target
216
+    double mTranslateDelta;       //!< Step size to move
217
+    double mRotateDelta;          //!< Radians to rotate Y
218
+    double mTheta;                //!< View angle Y
219
+    double mRotateDelta2;         //!< Radians to rotate Z
220
+    double mTheta2;               //!< View angle Z
221
+    bool mUpdate;                 //!< Check to see if view needs updating
222
+    static unsigned int mCounter; //!< Id system use
368 223
 };
369 224
 
370 225
 #endif

+ 22
- 79
include/SkeletalModel.h Näytä tiedosto

@@ -2,8 +2,6 @@
2 2
  * \file include/SkeletalModel.h
3 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
6
- *
7 5
  * \author Mongoose
8 6
  *
9 7
  * \todo Start cutting off old hacks by simple force use of method interface.
@@ -17,37 +15,26 @@
17 15
 #include <Vector.h>
18 16
 #include <MatMath.h>
19 17
 
20
-
21
-typedef struct bone_tag_s
22
-{
18
+typedef struct {
23 19
     int mesh;
24 20
     vec3_t off;
25 21
     vec3_t rot;
26 22
     char flag;
27
-
28 23
 } bone_tag_t;
29 24
 
30
-
31
-typedef struct bone_frame_s
32
-{
25
+typedef struct {
33 26
     Vector<bone_tag_t *> tag;
34 27
     vec3_t pos;
35 28
     float yaw;
36
-
37 29
 } bone_frame_t;
38 30
 
39
-
40
-typedef struct animation_frame_s
41
-{
31
+typedef struct {
42 32
     int id;
43 33
     char rate;
44 34
     Vector<bone_frame_t *> frame;
45
-
46 35
 } animation_frame_t;
47 36
 
48
-
49
-typedef struct skeletal_model_s
50
-{
37
+typedef struct {
51 38
     int id;
52 39
     bool tr4Overlay;
53 40
     bool pigtails;
@@ -59,56 +46,29 @@ typedef struct skeletal_model_s
59 46
     float ponyOff;
60 47
     float ponyOff2;
61 48
     Vector<animation_frame_t *> animation;
62
-
63 49
 } skeletal_model_t;
64 50
 
65
-
66
-class SkeletalModel
67
-{
68
- public:
69
-
70
-    ////////////////////////////////////////////////////////////
71
-    // Constructors
72
-    ////////////////////////////////////////////////////////////
73
-
51
+/*!
52
+ * \brief This is the factored out skeletal model class
53
+ */
54
+class SkeletalModel {
55
+public:
56
+    /*!
57
+     * \brief Constructs an object of SkeletalModel
58
+     */
74 59
     SkeletalModel();
75
-    /*------------------------------------------------------
76
-     * Pre  :
77
-     * Post : Constructs an object of SkeletalModel
78
-     *
79
-     *-- History ------------------------------------------
80
-     *
81
-     * 2003.05.19:
82
-     * Mongoose - Created
83
-     ------------------------------------------------------*/
84 60
 
61
+     /*!
62
+     * \brief Deconstructs an object of SkeletalModel
63
+     */
85 64
     ~SkeletalModel();
86
-    /*------------------------------------------------------
87
-     * Pre  : SkeletalModel object is allocated
88
-     * Post : Deconstructs an object of SkeletalModel
89
-     *
90
-     *-- History ------------------------------------------
91
-     *
92
-     * 2003.05.19:
93
-     * Mongoose - Created
94
-     ------------------------------------------------------*/
95
-
96
-
97
-    ////////////////////////////////////////////////////////////
98
-    // Public Accessors
99
-    ////////////////////////////////////////////////////////////
100 65
 
101 66
     int getAnimation();
102 67
 
103
-    int getFrame() ;
68
+    int getFrame();
104 69
 
105 70
     int getIdleAnimation();
106 71
 
107
-
108
-    ////////////////////////////////////////////////////////////
109
-    // Public Mutators
110
-    ////////////////////////////////////////////////////////////
111
-
112 72
     void setModel(skeletal_model_t *mdl);
113 73
 
114 74
     void setAnimation(int index);
@@ -117,33 +77,16 @@ class SkeletalModel
117 77
 
118 78
     void setIdleAnimation(int index);
119 79
 
120
-
121
-    enum SkeletalModelFlag { fReserved = 1 };
122
-
123 80
     unsigned int flags;
124
-
125
-    skeletal_model_t *model;   /* World render model */
126
-
127
-    float time;                /* Interpolation use */
81
+    skeletal_model_t *model; //!< World render model
82
+    float time;              //!< Interpolation use
128 83
     float lastTime;
129
-
130
-    float rate; // temp cache this here for old animation system use
84
+    float rate;              //!< \fixme temp cache this here for old animation system use
131 85
 
132 86
 private:
133
-
134
-    ////////////////////////////////////////////////////////////
135
-    // Private Accessors
136
-    ////////////////////////////////////////////////////////////
137
-
138
-
139
-    ////////////////////////////////////////////////////////////
140
-    // Private Mutators
141
-    ////////////////////////////////////////////////////////////
142
-
143
-
144
-    int mBoneFrame;             /* Bone frame */
145
-    int mAnimationFrame;        /* Animation frame */
146
-    int mIdleAnimation;         /* Idle animation */
87
+    int mBoneFrame;      //!< Bone frame
88
+    int mAnimationFrame; //!< Animation frame
89
+    int mIdleAnimation;  //!< Idle animation
147 90
 };
148 91
 
149 92
 #endif

+ 12
- 13
include/tga.h Näytä tiedosto

@@ -29,19 +29,18 @@ typedef enum {
29 29
  * \brief Data structure representing TGA file header
30 30
  */
31 31
 typedef struct {
32
-    unsigned char comment_lenght;       /*!< Number of bytes in comment */
33
-    unsigned char colormap_type;        /*!< 0 No colormap; 1 Has colormap  */
34
-    unsigned char image_type;           /*!< 1 Colormapped; 2 Unmapped;
35
-                                             9 Colormapped RLE; 10 Unmapped RLE */
36
-    unsigned short colormap_index;      /*!< Index of first color map entry */
37
-    unsigned short colormap_lenght;     /*!< Number of color map entries */
38
-    unsigned char colormap_bbp;         /*!< 16, 24, or 32 bits per pixel format */
39
-    unsigned short origin_x;            /*!< X coor of lower-left corner */
40
-    unsigned short origin_y;            /*!< Y coor of lower-left corner */
41
-    unsigned short width;               /*!< Width in pixels */
42
-    unsigned short height;              /*!< Height in pixels */
43
-    unsigned char bpp;                  /*!< Number of bits in a pixel index */
44
-    unsigned char desc_flags;           /*!< Various magic bits */
32
+    unsigned char comment_lenght;       //!< Number of bytes in comment
33
+    unsigned char colormap_type;        //!< 0 No colormap; 1 Has colormap
34
+    unsigned char image_type;           //!< 1 Colormapped; 2 Unmapped; 9 Colormapped RLE; 10 Unmapped RLE
35
+    unsigned short colormap_index;      //!< Index of first color map entry
36
+    unsigned short colormap_lenght;     //!< Number of color map entries
37
+    unsigned char colormap_bbp;         //!< 16, 24, or 32 bits per pixel format
38
+    unsigned short origin_x;            //!< X coor of lower-left corner
39
+    unsigned short origin_y;            //!< Y coor of lower-left corner
40
+    unsigned short width;               //!< Width in pixels
41
+    unsigned short height;              //!< Height in pixels
42
+    unsigned char bpp;                  //!< Number of bits in a pixel index
43
+    unsigned char desc_flags;           //!< Various magic bits
45 44
 } tga_t;
46 45
 
47 46
 /*!

+ 5
- 32
src/Camera.cpp Näytä tiedosto

@@ -1,36 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file src/Camera.cpp
3
+ * \brief OpenGL camera class
3 4
  *
4
- * Project : Freyja
5
- * Author  : Mongoose
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : Camera
9
- * License : No use w/o permission (C) 2001 Mongoose
10
- * Comments: OpenGL camera class for Freyja
11
- *
12
- *           This file was generated using Mongoose's C++
13
- *           template generator script.  <stu7440@westga.edu>
14
- *
15
- *-- History -------------------------------------------------
16
- *
17
- * 2002.12.16:
18
- * Mongoose - Removed perspective setting and OpenGL dependency
19
- *            API changes to reflect new direction of this object:
20
- *              Removing outdated algorithms and code
21
- *              And refactoring the class in general
22
- *
23
- * 2001.06.06:
24
- * Mongoose - Moving GLU code into here to setup break up
25
- *            into Camera base class, DynamicCamera,
26
- *            and GLUCamera child classes
27
- *
28
- * 2001.06.04:
29
- * Mongoose - Quaternion based compile option
30
- *
31
- * 2001.05.18:
32
- * Mongoose - Created
33
- =================================================================*/
5
+ * \author Mongoose
6
+ */
34 7
 
35 8
 #include <stdio.h>
36 9
 #include <math.h>

+ 5
- 19
src/SkeletalModel.cpp Näytä tiedosto

@@ -1,23 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file src/SkeletalModel.cpp
3
+ * \brief This is the factored out skeletal model class
3 4
  *
4
- * Project : OpenRaider
5
- * Author  : Terry 'Mongoose' Hendrix II
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : SkeletalModel
9
- * License : No use w/o permission (C) 2003 Mongoose
10
- * Comments: This is the factored out skeletal model class
11
- *
12
- *
13
- *           This file was generated using Mongoose's C++
14
- *           template generator script.  <stu7440@westga.edu>
15
- *
16
- *-- History -------------------------------------------------
17
- *
18
- * 2003.05.19:
19
- * Mongoose - Created
20
- =================================================================*/
5
+ * \author Mongoose
6
+ */
21 7
 
22 8
 #include <SkeletalModel.h>
23 9
 

Loading…
Peruuta
Tallenna