Changeset 8081 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
- Timestamp:
- Jun 1, 2006, 4:42:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
r8030 r8081 11 11 ### File Specific: 12 12 main-programmer: bottac@ee.ethz.ch 13 14 Inspired by: 15 Rendering Q3 Maps by Morgan McGuire http://graphics.cs.brown.edu/games/quake/quake3.html 16 Unofficial Quake 3 Map Specs by Kekoa Proudfoot http://graphics.stanford.edu/~kekoa/q3/ 17 18 Collision detection adapted from: 19 Quake 3 Collision Detection by Nathan Ostgard http://www.devmaster.net/articles/quake3collision/ 13 20 */ 14 21 15 22 #include <vector> 16 23 #include <deque> 17 18 24 19 25 // FORWARD DECLARATIONS … … 29 35 class WorldEntity; 30 36 37 struct BspCollisionEvent 38 { 39 Vector normal; //!< normal Vector, length 1 40 Vector place; //!< Absoloute coordinates of collision 41 }; 42 31 43 class BspManager 32 44 { … … 34 46 // Constructors 35 47 BspManager(); 48 49 BspManager(const char* fileName, float scale = 0.4f); 50 void load(const char* fileName, float scale); 36 51 37 52 // Functions 38 void draw();53 const void draw(); 39 54 void draw_debug_face(int Face); 40 55 void draw_face(int Face); 41 56 void draw_patch(face* Face); 57 42 58 43 59 void checkCollision(WorldEntity* worldEntity); … … 48 64 void checkCollision(BspTreeNode* node, Vector* cam); 49 65 void checkCollisionRay(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end); 66 void checkCollisionRayN(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end); 50 67 void checkBrushRay(brush* curBrush); 68 void checkBrushRayN(brush* curBrush); 51 69 void drawDebugCube(Vector* cam); 52 70 bool isAlreadyVisible(int Face);
Note: See TracChangeset
for help on using the changeset viewer.