Changeset 7395 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
- Timestamp:
- Apr 27, 2006, 3:35:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/graphics/importer/bsp_manager.h
r7385 r7395 1 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 4 4 Copyright (C) 2006 orx 5 5 6 6 This program is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 ### File Specific: 12 12 main-programmer: bottac@ee.ethz.ch … … 28 28 { 29 29 public: 30 // Constructors31 BspManager();30 // Constructors 31 BspManager(); 32 32 33 // Functions34 void draw();35 void draw_leaf();36 void draw_debug_face(int Face);37 void draw_face(int Face);38 void draw_patch(face* Face);39 33 // Functions 34 void draw(); 35 void draw_leaf(); 36 void draw_debug_face(int Face); 37 void draw_face(int Face); 38 void draw_patch(face* Face); 39 40 40 41 41 private: 42 // Functions43 BspFile* bspFile;44 BspTreeNode* root;45 const BspTreeNode* getLeaf(const BspTreeNode* node, const Vector& cam) const; // Traverses the tree46 void checkCollision(BspTreeNode* node, Vector* cam);47 void drawDebugCube(Vector* cam);48 Vector cam;49 Vector ship;50 Vector viewDir;51 bool * alreadyVisible;52 bool isAlreadyVisible(int Face);53 void addFace(int Face);54 int lastTex;42 // Functions 43 BspFile* bspFile; 44 BspTreeNode* root; 45 BspTreeNode* getLeaf(BspTreeNode* node, Vector* cam) ; //!< Traverses the tree 46 void checkCollision(BspTreeNode* node, Vector* cam); 47 void drawDebugCube(Vector* cam); 48 Vector cam; 49 Vector ship; 50 Vector viewDir; 51 bool * alreadyVisible; 52 bool isAlreadyVisible(int Face); 53 void addFace(int Face); 54 int lastTex; 55 55 56 56 57 // Vectors to store the visible faces58 ::std::deque<int> trasparent; //the ones with transparancy go here59 ::std::deque<int> opal; //the others here.57 // Deques to store the visible faces 58 ::std::deque<int> trasparent; //!< the ones with transparancy go here 59 ::std::deque<int> opal; //!< the others here. 60 60 61 61 };
Note: See TracChangeset
for help on using the changeset viewer.