Browse Source

Documented Render.h

Thomas Buck 10 years ago
parent
commit
f8d57a8a47
2 changed files with 201 additions and 441 deletions
  1. 196
    413
      include/Render.h
  2. 5
    28
      src/Render.cpp

+ 196
- 413
include/Render.h View File

@@ -1,24 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file include/Render.h
3
+ * \brief OpenRaider Renderer class
3 4
  *
4
- * Project : Render
5
- * Author  : Mongoose
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : Render
9
- * License : No use w/o permission (C) 2001 Mongoose
10
- * Comments: This is the renderer class for OpenRaider
11
- *
12
- *
13
- *           This file was generated using Mongoose's C++
14
- *           template generator script.  <stu7440@westga.edu>
15
- *
16
- *-- History ------------------------------------------------
17
- *
18
- * 2001.05.21:
19
- * Mongoose - Created
20
- ================================================================*/
21
-
5
+ * \author Mongoose
6
+ */
22 7
 
23 8
 #ifndef _RENDER_H_
24 9
 #define _RENDER_H_
@@ -39,20 +24,33 @@
39 24
 #include <Emitter.h>
40 25
 #endif
41 26
 
42
-
27
+/*!
28
+ * \brief RenderRoom used by Renderer
29
+ */
43 30
 class RenderRoom {
44 31
 public:
32
+
33
+    /*!
34
+     * \brief Constructs an object of RenderRoom
35
+     */
45 36
     RenderRoom() {
46 37
         room = 0x0;
47 38
         dist = 0.0f;
48 39
         center[0] = center[1] = center[2] = 0.0f;
49 40
     }
50 41
 
42
+    /*!
43
+     * \brief Deconstructs an object of RenderRoom
44
+     */
51 45
     ~RenderRoom() {
52 46
         //! \fixme Hangs when erasing - might be shared pointers somewhere
53 47
         //lights.erase();
54 48
     }
55 49
 
50
+    /*!
51
+     * \brief Computes central point of room.
52
+     * Result is stored in center member variable.
53
+     */
56 54
     void computeCenter() {
57 55
         if (room)
58 56
             helMidpoint3v(room->bbox_min, room->bbox_max, center);
@@ -60,15 +58,18 @@ public:
60 58
 
61 59
     vec_t dist;             //!< Distance to near plane, move to room?
62 60
     vec3_t center;          //!< Center of bbox, move to room?
63
-    room_mesh_t *room;      //!< Physical room stored in World, very dangerous as allocated and used
64 61
     Vector<Light *> lights; //!< List of lights in this room
65 62
     Mesh mesh;              //!< OpenGL mesh that represents this room
66
-};
67 63
 
64
+    //! \fixme very dangerous as allocated and used
65
+    room_mesh_t *room;      //!< Physical room stored in World
66
+};
68 67
 
69
-class Render
70
-{
71
- public:
68
+/*!
69
+ * \brief OpenRaider Renderer class
70
+ */
71
+class Render {
72
+public:
72 73
 
73 74
     typedef enum {
74 75
         modeDisabled,
@@ -103,469 +104,251 @@ class Render
103 104
         skeletalMesh
104 105
     } RenderMeshType;
105 106
 
106
-    ////////////////////////////////////////////////////////////
107
-    // Constructors
108
-    ////////////////////////////////////////////////////////////
109
-
107
+    /*!
108
+     * \brief Constructs an object of Render
109
+     */
110 110
     Render();
111
-    /*------------------------------------------------------
112
-     * Pre  :
113
-     * Post : Constructs an object of Render
114
-     *
115
-     *-- History ------------------------------------------
116
-     *
117
-     * 2001.05.21:
118
-     * Mongoose - Created
119
-     ------------------------------------------------------*/
120 111
 
112
+    /*!
113
+     * \brief Deconstructs an object of Render
114
+     */
121 115
     ~Render();
122
-    /*------------------------------------------------------
123
-     * Pre  : Render object is allocated
124
-     * Post : Deconstructs an object of Render
125
-     *
126
-     *-- History ------------------------------------------
127
-     *
128
-     * 2001.05.21:
129
-     * Mongoose - Created
130
-     ------------------------------------------------------*/
131
-
132
-
133
-    ////////////////////////////////////////////////////////////
134
-    // Public Accessors
135
-    ////////////////////////////////////////////////////////////
136 116
 
117
+    /*!
118
+     * \brief Makes a screenshot, writes to disk
119
+     * \param filenameBase basename of file to be written
120
+     */
137 121
     void screenShot(char *filenameBase);
138
-    /*------------------------------------------------------
139
-     * Pre  :
140
-     * Post : Makes a screenshot, writes to disk as file
141
-     *
142
-     *-- History ------------------------------------------
143
-     *
144
-     * 2002.12.20:
145
-     * Mongoose - Created, factored out of OpenRaider class
146
-     ------------------------------------------------------*/
147 122
 
123
+    /*!
124
+     * \brief Gets current rendering mode
125
+     * \returns current RenderMode
126
+     * \fixme Don't return enum as int?!
127
+     */
148 128
     int getMode();
149
-    /*------------------------------------------------------
150
-     * Pre  :
151
-     * Post : Gets current rendering mode
152
-     *
153
-     *-- History ------------------------------------------
154
-     *
155
-     * 2001.05.21:
156
-     * Mongoose - Created
157
-     ------------------------------------------------------*/
158
-
159
-
160
-    ////////////////////////////////////////////////////////////
161
-    // Public Mutators
162
-    ////////////////////////////////////////////////////////////
163 129
 
164 130
     void addRoom(RenderRoom *rRoom);
165
-    /*------------------------------------------------------
166
-     * Pre  :
167
-     * Post :
168
-     *
169
-     *-- History ------------------------------------------
170
-     *
171
-     * 2002.12.21:
172
-     * Mongoose - Created, factored out of World
173
-     ------------------------------------------------------*/
174 131
 
132
+    /*!
133
+     * \brief Starts and sets up OpenGL target
134
+     * \param width width of window
135
+     * \param height height of window
136
+     */
175 137
     void Init(int width, int height);
176
-    /*------------------------------------------------------
177
-     * Pre  :
178
-     * Post : Starts and sets up OpenGL target
179
-     *
180
-     *-- History ------------------------------------------
181
-     *
182
-     * 2001.05.21:
183
-     * Mongoose - Created
184
-     ------------------------------------------------------*/
185 138
 
139
+    /*!
140
+     * \brief Loads textures in a certain id slot
141
+     * \param image Image to load
142
+     * \param width width of image
143
+     * \param height height of image
144
+     * \param id id for texture
145
+     * \sa Texture::loadBufferSlot()
146
+     */
186 147
     void loadTexture(unsigned char *image,
187 148
                           unsigned int width, unsigned int height,
188 149
                           unsigned int id);
189
-    /*------------------------------------------------------
190
-     * Pre  :
191
-     * Post : Loads textures in a certian id slot
192
-     *
193
-     *-- History ------------------------------------------
194
-     *
195
-     * 2002.12.20:
196
-     * Mongoose - Created, factored out of OpenRaider class
197
-     ------------------------------------------------------*/
198 150
 
151
+    /*!
152
+     * \brief Sets up textures for OpenRaider.
153
+     * \param textureDir Is valid and exists with textures
154
+     * \param numLoaded returns number of loaded textures and will update
155
+     * number of external textures loaded
156
+     * \param nextId will update next level texture id
157
+     */
199 158
     void initTextures(char *textureDir, unsigned int *numLoaded,
200 159
                             unsigned int *nextId);
201
-    /*------------------------------------------------------
202
-     * Pre  : textureDir is valid and exists with textures
203
-     * Post : Sets up textures for OpenRaider
204
-     *        Returns number of loaded textures and
205
-     *
206
-     *        numLoaded will update number of
207
-     *        external textures loaded
208
-     *
209
-     *        nextId will update next level texture id
210
-     *
211
-     *-- History ------------------------------------------
212
-     *
213
-     * 2002.12.20:
214
-     * Mongoose - Created, factored out of OpenRaider class
215
-     ------------------------------------------------------*/
216 160
 
161
+    /*!
162
+     * \brief Initializes Emitter.
163
+     *
164
+     * Emitter is set up for rendering with 2 textures in
165
+     * a overhead rain or snow like pattern.
166
+     * Textures have to be initialized!
167
+     * \param name valid C-String name
168
+     * \param size valid size
169
+     * \param snowTex1 valid first texture
170
+     * \param snowTex2 valid second texture
171
+     */
217 172
     void initEmitter(const char *name, unsigned int size,
218 173
                           unsigned int snowTex1, unsigned int snowTex2);
219
-    /*------------------------------------------------------
220
-     * Pre  : Textures are init and these args are valid
221
-     * Post : Emitter is set up for rendering with 2 textures
222
-     *        in a overhead rain or snow like pattern
223
-     *
224
-     *-- History ------------------------------------------
225
-     *
226
-     * 2002.12.20:
227
-     * Mongoose - Created
228
-     ------------------------------------------------------*/
229 174
 
175
+    /*!
176
+     * Removes current world/entity/etc geometry
177
+     */
230 178
     void ClearWorld();
231
-  /*------------------------------------------------------
232
-   * Pre  :
233
-   * Post : Removes current world/entity/etc geometery
234
-   *
235
-   *-- History ------------------------------------------
236
-   *
237
-   * 2001.05.21:
238
-   * Mongoose - Created
239
-   ------------------------------------------------------*/
240
-
241
-    void toggleFlag(unsigned int flag);
179
+
180
+    /*!
181
+     * \brief Clears bitflags, changes state of renderer in some way
182
+     * \param flags RenderFlags to clear (ORed)
183
+     * \fixme use enum not integer as parameter?!
184
+     */
242 185
     void clearFlags(unsigned int flags);
186
+
187
+    /*!
188
+     * \brief Sets bitflags, changes state of renderer in some way
189
+     * \param flags RenderFlags to set (ORed)
190
+     * \fixme use enum not integer as parameter?!
191
+     */
243 192
     void setFlags(unsigned int flags);
244
-  /*------------------------------------------------------
245
-   * Pre  : (Un)Sets bitflags for various control use
246
-   * Post : Changes state of renderer in some way
247
-   *
248
-   *-- History ------------------------------------------
249
-   *
250
-   * 2002.03.21:
251
-   * Mongoose - Created
252
-   ------------------------------------------------------*/
253 193
 
254 194
     void setMode(int n);
255
-  /*------------------------------------------------------
256
-   * Pre  :
257
-   * Post :
258
-   *
259
-   *-- History ------------------------------------------
260
-   *
261
-   * 2001.05.21:
262
-   * Mongoose - Created
263
-   ------------------------------------------------------*/
264 195
 
265 196
     void Update(int width, int height);
266
-  /*------------------------------------------------------
267
-   * Pre  :
268
-   * Post :
269
-   *
270
-   *-- History ------------------------------------------
271
-   *
272
-   * 2001.05.21:
273
-   * Mongoose - Created
274
-   ------------------------------------------------------*/
275 197
 
198
+    /*!
199
+     * \brief Renders a single game frame
200
+     */
276 201
     void Display();
277
-  /*------------------------------------------------------
278
-   * Pre  :
279
-   * Post : Renders a single game frame
280
-   *
281
-   *-- History ------------------------------------------
282
-   *
283
-   * 2001.05.21:
284
-   * Mongoose - Created
285
-   ------------------------------------------------------*/
286 202
 
287 203
     void setSkyMesh(int index, bool rot);
288
-  /*------------------------------------------------------
289
-   * Pre  :
290
-   * Post :
291
-   *
292
-   *-- History ------------------------------------------
293
-   *
294
-   * 2001.05.21:
295
-   * Mongoose - Created
296
-   ------------------------------------------------------*/
297 204
 
298 205
     void ViewModel(entity_t *ent, int index);
299
-  /*------------------------------------------------------
300
-   * Pre  :
301
-   * Post :
302
-   *
303
-   *-- History ------------------------------------------
304
-   *
305
-   * 2001.05.21:
306
-   * Mongoose - Created
307
-   ------------------------------------------------------*/
308 206
 
309 207
     void RegisterCamera(Camera *camera);
310
-  /*------------------------------------------------------
311
-   * Pre  :
312
-   * Post :
313
-   *
314
-   *-- History ------------------------------------------
315
-   *
316
-   * 2001.05.21:
317
-   * Mongoose - Created
318
-   ------------------------------------------------------*/
319
-
320
-   GLString *GetString();
321
-   /*------------------------------------------------------
322
-    * Pre  :
323
-    * Post : Returns GL text output agent
324
-    *
325
-    *-- History ------------------------------------------
326
-    *
327
-    * 2002.01.04:
328
-    * Mongoose - Created
329
-    ------------------------------------------------------*/
330
-
331
-    //! \fixme Should be private
332
-   void drawLoadScreen();
333
-   /*------------------------------------------------------
334
-    * Pre  : Texture is init
335
-    * Post : Renders load screen
336
-    *
337
-    *-- History ------------------------------------------
338
-    *
339
-    * 2002.01.01:
340
-    * Mongoose - Created
341
-    ------------------------------------------------------*/
342 208
 
343
-    void addSkeletalModel(SkeletalModel *mdl);
344
-   /*------------------------------------------------------
345
-    * Pre  :
346
-    * Post :
347
-    *
348
-    *-- History ------------------------------------------
349
-    *
350
-    * 2002.01.01:
351
-    * Mongoose - Created
352
-    ------------------------------------------------------*/
209
+    /*!
210
+     * \brief Get the GL text output agent
211
+     * \returns Used GLString instance
212
+     */
213
+    GLString *GetString();
353 214
 
215
+    /*!
216
+     * \brief Renders load screen.
217
+     *
218
+     * Textures must be initialized.
219
+     * \fixme Should be private!
220
+     */
221
+    void drawLoadScreen();
354 222
 
355
-private:
223
+    void addSkeletalModel(SkeletalModel *mdl);
356 224
 
357
-    ////////////////////////////////////////////////////////////
358
-    // Private Accessors
359
-    ////////////////////////////////////////////////////////////
225
+private:
360 226
 
227
+    /*!
228
+     * \brief Check if a bounding box is in the View Volume
229
+     * \param bboxMin Start coordinates of a valid bounding box
230
+     * \param bboxMax End coordinates of a valid bounding box
231
+     * \returns true if bounding box is visible
232
+     */
361 233
     bool isVisible(float bboxMin[3], float bboxMax[3]);
362
-    /*------------------------------------------------------
363
-     * Pre  : Abstract bounding box must be valid
364
-     * Post : If object's bounding box is in viewing volume
365
-     *        return true, else false
366
-     *
367
-     *-- History ------------------------------------------
368
-     *
369
-     * 2002.12.16:
370
-     * Mongoose - Moved to Render class
371
-     *
372
-     * 2001.06.06:
373
-     * Mongoose - Created
374
-     ------------------------------------------------------*/
375 234
 
235
+    /*!
236
+     * \brief Check if a point is in the View Volume
237
+     * \param x X coordinate
238
+     * \param y Y coordinate
239
+     * \param z Z coordinate
240
+     * \returns true if point is visible
241
+     */
376 242
     bool isVisible(float x, float y, float z);
377
-    /*------------------------------------------------------
378
-     * Pre  :
379
-     * Post : Is point in view volume?
380
-     *
381
-     *-- History ------------------------------------------
382
-     *
383
-     * 2002.12.16:
384
-     * Mongoose - Created
385
-     ------------------------------------------------------*/
386 243
 
244
+    /*!
245
+     * \brief Check if a sphere is in the View Volume
246
+     * \param x X coordinate of center of sphere
247
+     * \param y Y coordinate of center of sphere
248
+     * \param z Z coordinate of center of sphere
249
+     * \param radius radius of sphere
250
+     * \returns true if sphere is visible
251
+     */
387 252
     bool isVisible(float x, float y, float z, float radius);
388
-    /*------------------------------------------------------
389
-     * Pre  :
390
-     * Post : Is sphere in view volume?
391
-     *
392
-     *-- History ------------------------------------------
393
-     *
394
-     * 2002.12.16:
395
-     * Mongoose - Created
396
-     ------------------------------------------------------*/
397
-
398
-
399
-    ////////////////////////////////////////////////////////////
400
-    // Private Mutators
401
-    ////////////////////////////////////////////////////////////
402 253
 
254
+    /*!
255
+     * \brief Build a visible room list starting at index
256
+     * \param index valid room index where to start the list
257
+     */
403 258
     void newRoomRenderList(int index);
404
-   /*------------------------------------------------------
405
-    * Pre  : room index is valid
406
-    * Post : Build a visible room list starting at index
407
-    *
408
-    *-- History ------------------------------------------
409
-    *
410
-    * 2002.01.01:
411
-    * Mongoose - Created
412
-    ------------------------------------------------------*/
413 259
 
260
+    /*!
261
+     * \brief Build a visible room list starting from room and
262
+     * only considers its linked rooms and their linked rooms.
263
+     * \param room First room in list
264
+     */
414 265
     void buildRoomRenderList(RenderRoom *room);
415
-   /*------------------------------------------------------
416
-    * Pre  : room is valid
417
-    * Post : Build a visible room list starting from room
418
-     *        and only consider it's linked rooms and their
419
-     *        linked rooms
420
-    *
421
-    *-- History ------------------------------------------
422
-    *
423
-    * 2002.01.01:
424
-    * Mongoose - Created
425
-    ------------------------------------------------------*/
426 266
 
267
+    /*!
268
+     * \brief Renders visible world object.
269
+     *
270
+     * Texture must be initialized.
271
+     */
427 272
     void drawObjects();
428
-   /*------------------------------------------------------
429
-    * Pre  : Texture is init
430
-    * Post : Renders visible world objects
431
-    *
432
-    *-- History ------------------------------------------
433
-    *
434
-    * 2002.01.01:
435
-    * Mongoose - Created
436
-    ------------------------------------------------------*/
437 273
 
274
+    /*!
275
+     * \brief Renders Sky domes/boxes/etc by scaling factor.
276
+     *
277
+     * Texture must be initialized.
278
+     * \param scale correct scale for map size
279
+     */
438 280
     void drawSkyMesh(float scale);
439
-   /*------------------------------------------------------
440
-    * Pre  : Texture is init
441
-     *        scale is correct for map size
442
-    * Post : Renders Sky domes/boxes/etc by scaling factor
443
-    *
444
-    *-- History ------------------------------------------
445
-    *
446
-    * 2002.01.01:
447
-    * Mongoose - Created
448
-    ------------------------------------------------------*/
449 281
 
282
+    /*!
283
+     * \brief Renders a skeletal model.
284
+     *
285
+     * Texture must be initialized!
286
+     * \param model model to render
287
+     */
450 288
     void drawModel(SkeletalModel *model);
451
-   /*------------------------------------------------------
452
-    * Pre  : Texture is init
453
-    * Post : Renders a skeletal model
454
-    *
455
-    *-- History ------------------------------------------
456
-    *
457
-    * 2002.01.01:
458
-    * Mongoose - Created
459
-    ------------------------------------------------------*/
460 289
 
461
-    void drawRoom(RenderRoom *rRoom, bool draw_alpha);
462
-   /*------------------------------------------------------
463
-    * Pre  : Texture is init
464
-     *        Draw all rooms with alpha false, then
465
-     *        draw with alpha true
290
+    /*!
291
+     * Renders a room in 2 seperate passes to handle alpha.
466 292
      *
467
-    * Post : Renders a room in 2 seperate passes to
468
-     *        handle alpha, currently doesn't sort alpha
469
-     *        but looks pretty good
470
-    *
471
-    *-- History ------------------------------------------
472
-    *
473
-    * 2002.01.01:
474
-    * Mongoose - Created
475
-    ------------------------------------------------------*/
293
+     * Currently doesnt sort alpha but looks pretty good.
294
+     * Texture must be initialized.
295
+     * Draw all rooms with alpha false, then again with alpha true.
296
+     * \param rRoom room to render
297
+     * \param draw_alpha once false, once true
298
+     */
299
+    void drawRoom(RenderRoom *rRoom, bool draw_alpha);
476 300
 
301
+    /*!
302
+     * \brief Renders static room model.
303
+     *
304
+     * Texture must be initialized.
305
+     * \param mesh Static model to render
306
+     */
477 307
     void drawRoomModel(static_model_t *mesh);
478
-   /*------------------------------------------------------
479
-    * Pre  : Texture is init
480
-    * Post : Renders static room model
481
-    *
482
-    *-- History ------------------------------------------
483
-    *
484
-    * 2002.01.01:
485
-    * Mongoose - Created
486
-    ------------------------------------------------------*/
487 308
 
309
+    /*!
310
+     * \brief Renders a mesh.
311
+     *
312
+     * Texture must be initialized.
313
+     * \param r_mesh Mesh to render.
314
+     * \param type Must be object containing mesh
315
+     */
488 316
     void drawModelMesh(model_mesh_t *r_mesh, RenderMeshType type);
489
-   /*------------------------------------------------------
490
-    * Pre  : Texture is init, type is object containing mesh
491
-    * Post : Renders a mesh
492
-    *
493
-    *-- History ------------------------------------------
494
-    *
495
-    * 2002.01.01:
496
-    * Mongoose - Created
497
-    ------------------------------------------------------*/
498 317
 
318
+    /*!
319
+     * \brief Renders a sprite.
320
+     *
321
+     * Texture must be initialized.
322
+     * \param sprite sprite to render
323
+     */
499 324
     void drawSprite(sprite_t *sprite);
500
-   /*------------------------------------------------------
501
-    * Pre  : Texture is init
502
-    * Post : Renders a sprite
503
-    *
504
-    *-- History ------------------------------------------
505
-    *
506
-    * 2002.01.01:
507
-    * Mongoose - Created
508
-    ------------------------------------------------------*/
509 325
 
326
+    /*!
327
+     * \brief Updates View Volume. Call once per render frame.
328
+     */
510 329
     void updateViewVolume();
511
-    /*------------------------------------------------------
512
-     * Pre  : Call once per render frame
513
-     * Post : Updated view volume
514
-     *
515
-     *-- History ------------------------------------------
516
-     *
517
-     * 2002.12.16:
518
-     * Mongoose - Created
519
-     ------------------------------------------------------*/
520 330
 
331
+    //! \fixme Let them eat cake...? O.o
521 332
     void tmpRenderModelMesh(model_mesh_t *r_mesh, texture_tri_t *ttri);
522
-    /*------------------------------------------------------
523
-     * Pre  :
524
-     * Post : Let them eat cake...
525
-     *
526
-     *-- History ------------------------------------------
527
-     *
528
-     * 2003.05.19:
529
-     * Mongoose - Created
530
-     ------------------------------------------------------*/
531
-
532
-
533
-
534
-#ifdef USING_EMITTER
535
-    Emitter *mEmitter;      /* Particle emitter test */
536
-#endif
537
-
538
-    Texture mTexture;       /* Texture subsystem */
539
-
540
-    Camera *mCamera;        /* Camera subsystem */
541
-
542
-    GLString mString;       /* GL Text subsystem */
543 333
 
334
+    Texture mTexture;                     //!< Texture subsystem
335
+    Camera *mCamera;                      //!< Camera subsystem
336
+    GLString mString;                     //!< GL Text subsystem
544 337
     Vector<RenderRoom *> mRoomRenderList;
545
-
546 338
     Vector<RenderRoom *> mRooms;
547
-
548 339
     Vector<SkeletalModel *> mModels;
549
-
550
-    unsigned int mFlags;    /* Rendering flags */
551
-
552
-    unsigned int mWidth;    /* Viewport width */
553
-
554
-    unsigned int mHeight;   /* Viewport height */
555
-
556
-    unsigned int mMode;     /* Rendering mode */
557
-
340
+    unsigned int mFlags;                  //!< Rendering flags
341
+    unsigned int mWidth;                  //!< Viewport width
342
+    unsigned int mHeight;                 //!< Viewport height
343
+    unsigned int mMode;                   //!< Rendering mode
558 344
     unsigned int *mNumTexturesLoaded;
559
-
560 345
     unsigned int *mNextTextureId;
561
-
562
-    // float mSplash;
563
-
564 346
     int mLock;
565
-
566
-    int mSkyMesh;           /* Skymesh model id */
567
-
568
-    bool mSkyMeshRotation;  /* Should Skymesh be rotated? */
347
+    int mSkyMesh;                         //!< Skymesh model id
348
+    bool mSkyMeshRotation;                //!< Should Skymesh be rotated?
349
+#ifdef USING_EMITTER
350
+    Emitter *mEmitter;                    //!< Particle emitter test
351
+#endif
569 352
 };
570 353
 
571 354
 #endif

+ 5
- 28
src/Render.cpp View File

@@ -1,23 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file src/Render.cpp
3
+ * \brief OpenRaider Renderer class
3 4
  *
4
- * Project : Render
5
- * Author  : Mongoose
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : Render
9
- * License : No use w/o permission (C) 2001 Mongoose
10
- * Comments: This is the renderer class for OpenRaider
11
- *
12
- *
13
- *           This file was generated using Mongoose's C++
14
- *           template generator script.  <stu7440@westga.edu>
15
- *
16
- *-- History -------------------------------------------------
17
- *
18
- * 2001.05.21:
19
- * Mongoose - Created
20
- =================================================================*/
5
+ * \author Mongoose
6
+ */
21 7
 
22 8
 #ifdef __APPLE__
23 9
 #include <OpenGL/gl.h>
@@ -579,15 +565,6 @@ void lightRoom(RenderRoom *room)
579 565
 }
580 566
 
581 567
 
582
-void Render::toggleFlag(unsigned int flag)
583
-{
584
-    if (mFlags & flag)
585
-        clearFlags(flag);
586
-    else
587
-        setFlags(flag);
588
-}
589
-
590
-
591 568
 void Render::clearFlags(unsigned int flags)
592 569
 {
593 570
     // _defaults |= flags; // Force removal if it wasn't set

Loading…
Cancel
Save