Pārlūkot izejas kodu

Moved bounding volumes into ViewVolume

Thomas Buck 10 gadus atpakaļ
vecāks
revīzija
8058f5c6a9
3 mainītis faili ar 32 papildinājumiem un 85 dzēšanām
  1. 0
    40
      include/BoundingVolume.h
  2. 27
    1
      include/ViewVolume.h
  3. 5
    44
      test/TombRaider.cpp

+ 0
- 40
include/BoundingVolume.h Parādīt failu

@@ -1,40 +0,0 @@
1
-/*!
2
- * \file include/BoundingVolume.h
3
- * \brief Bounding volume class for world/vis/culling/clipping/collision stuff.
4
- *
5
- * \author Mongoose
6
- */
7
-
8
-#ifndef _BOUNDINGVOLUME_H_
9
-#define _BOUNDINGVOLUME_H_
10
-
11
-#include "MatMath.h"
12
-
13
-/*!
14
- * \brief Defines a 3D sphere.
15
- */
16
-class BoundingSphere {
17
-public:
18
-    vec3_t mCenter; //!< Center of bounding sphere
19
-    vec_t mRadius; //!< Raduis of bounding sphere
20
-};
21
-
22
-/*!
23
- * \brief Defines a 3D rectangle.
24
- */
25
-class BoundingBox {
26
-public:
27
-    vec3_t mMin; //!< Bounding box MIN point
28
-    vec3_t mMax; //!< Bounding box MAX point
29
-};
30
-
31
-/*!
32
- * \brief Defines a 3D sphere and/or rectangle.
33
- */
34
-class BoundingVolume {
35
-public:
36
-    BoundingSphere mSphere; //!< Bounding sphere of this volume
37
-    BoundingBox mBox; //!< Bounding box of this volume
38
-};
39
-
40
-#endif

+ 27
- 1
include/ViewVolume.h Parādīt failu

@@ -9,7 +9,33 @@
9 9
 #define _VIEWVOLUME_H_
10 10
 
11 11
 #include "Matrix.h"
12
-#include "BoundingVolume.h"
12
+
13
+/*!
14
+ * \brief Defines a 3D sphere.
15
+ */
16
+class BoundingSphere {
17
+public:
18
+    vec3_t mCenter; //!< Center of bounding sphere
19
+    vec_t mRadius; //!< Raduis of bounding sphere
20
+};
21
+
22
+/*!
23
+ * \brief Defines a 3D rectangle.
24
+ */
25
+class BoundingBox {
26
+public:
27
+    vec3_t mMin; //!< Bounding box MIN point
28
+    vec3_t mMax; //!< Bounding box MAX point
29
+};
30
+
31
+/*!
32
+ * \brief Defines a 3D sphere and/or rectangle.
33
+ */
34
+class BoundingVolume {
35
+public:
36
+    BoundingSphere mSphere; //!< Bounding sphere of this volume
37
+    BoundingBox mBox; //!< Bounding box of this volume
38
+};
13 39
 
14 40
 /*!
15 41
  * \brief Viewing Volume for culling use

+ 5
- 44
test/TombRaider.cpp Parādīt failu

@@ -1,48 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file test/TombRaider.cpp
3
+ * \brief Loads maps, meshes, textures...
3 4
  *
4
- * Project : OpenRaider
5
- * Author  : Mongoose
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : OpenRaider
9
- * License : No use w/o permission (C) 2001 Mongoose
10
- * Comments: Loads TR 1, 2, 3, and 4 maps, meshes, and textures
11
- *
12
- *           This file was generated using Mongoose's C++
13
- *           template generator script.  <stu7440@westga.edu>
14
- *
15
- *-- History ------------------------------------------------
16
- *
17
- * 2003.05.13:
18
- * Mongoose - New API, maintance cost was becoming so high
19
- *            it was needed to sort out methods in groups
20
- *            like my newer source code -- of course some
21
- *            methods were altered or removed ( clean up )
22
- *
23
- * 2001.06.19:
24
- * Mongoose - New texture API for the new TR4/TR5 bump map
25
- *            support, also purged textile exposure
26
- *
27
- * 2001.05.21:
28
- * Mongoose - Added to project OpenRaider, more documentation
29
- *            than Freyja version I wrote ( 3d modeler )
30
- *
31
- *
32
- * 2000-05-13:
33
- * Mongoose - Added gcc and VC++ pragmas for packing
34
- *
35
- *            id style typedefs for structs
36
- *
37
- *            Heavy clean up and ported to C++
38
- *
39
- *            I saved yuri's notes as best I could and
40
- *            reformatted and corected as needed
41
- *
42
- * Mongoose - Created, based on:
43
- *                tr_view's tr2io.c by Yuri Zhivago, PhD,
44
- *                TR Rosetta Stone ( TombRaider pak format specs )
45
- ================================================================*/
5
+ * \author Mongoose
6
+ */
46 7
 
47 8
 #include <stdlib.h>
48 9
 #include <stdio.h>

Notiek ielāde…
Atcelt
Saglabāt