Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/bsp_model/src/lib/graphics/importer/bsp_manager.h @ 7353

Last change on this file since 7353 was 7353, checked in by bottac, 18 years ago

Added source files to branch bsp_model.

File size: 1.0 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2006 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: bottac@ee.ethz.ch
13*/
14
15
16// FORWARD DECLARATION
17class  BspFile;
18class BspTreeLeaf;
19class BspTreeNode;
20class Vector;
21class set;
22struct face;
23
24class BspManager
25{
26public:
27// Constructors
28 BspManager();
29
30// Functions
31 void draw();
32 void draw_leaf();
33 void draw_debug_face(int Face);
34 void draw_face(int Face);
35 void draw_patch(face* Face);
36 
37
38private:
39// Functions
40 BspFile*  bspFile;
41 BspTreeNode* root;
42 BspTreeNode* getLeaf(BspTreeNode*  node, Vector* cam);  // Traverses the tree
43 void  checkCollision(BspTreeNode* node, Vector* cam);
44 void drawDebugCube(Vector* cam);
45 Vector cam;
46 Vector ship;
47 Vector  viewDir;
48 bool * alreadyVisible;
49 bool isAlreadyVisible(int Face);
50 int lastTex;
51};
52
Note: See TracBrowser for help on using the repository browser.