Changeset 7563 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
- Timestamp:
- May 10, 2006, 12:54:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
r7395 r7563 17 17 18 18 19 // FORWARD DECLARATION 19 // FORWARD DECLARATIONS 20 20 class BspFile; 21 21 class BspTreeLeaf; … … 24 24 class set; 25 25 struct face; 26 struct brush; 26 27 27 28 class BspManager … … 33 34 // Functions 34 35 void draw(); 35 void draw_leaf(); 36 void draw_debug_face(int Face); 36 void draw_debug_face(int Face); 37 37 void draw_face(int Face); 38 38 void draw_patch(face* Face); … … 41 41 private: 42 42 // Functions 43 BspTreeNode* getLeaf(BspTreeNode* node, Vector* cam) ; //!< Traverses the tree 44 void checkCollision(BspTreeNode* node, Vector* cam); 45 void checkCollisionRay(BspTreeNode * node,float startFraction, float endFraction, Vector* start, Vector* end); 46 void checkBrushRay(brush* curBrush); 47 void drawDebugCube(Vector* cam); 48 bool isAlreadyVisible(int Face); 49 void addFace(int Face); 50 51 // Data 43 52 BspFile* bspFile; 44 53 BspTreeNode* root; 45 BspTreeNode* getLeaf(BspTreeNode* node, Vector* cam) ; //!< Traverses the tree46 void checkCollision(BspTreeNode* node, Vector* cam);47 void drawDebugCube(Vector* cam);48 54 Vector cam; 49 55 Vector ship; 50 56 Vector viewDir; 57 int lastTex; 58 59 //obsolete 60 bool outputStartsOut; 61 bool outputAllSolid; 62 float outputFraction; 63 51 64 bool * alreadyVisible; 52 bool isAlreadyVisible(int Face);53 void addFace(int Face);54 int lastTex;55 56 57 65 // Deques to store the visible faces 58 66 ::std::deque<int> trasparent; //!< the ones with transparancy go here
Note: See TracChangeset
for help on using the changeset viewer.