Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2006, 3:35:01 PM (18 years ago)
Author:
bottac
Message:

further reformating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.h

    r7385 r7395  
    11/*
    22   orxonox - the future of 3D-vertical-scrollers
    3 
     3 
    44   Copyright (C) 2006 orx
    5 
     5 
    66   This program is free software; you can redistribute it and/or modify
    77   it under the terms of the GNU General Public License as published by
    88   the Free Software Foundation; either version 2, or (at your option)
    99   any later version.
    10 
     10 
    1111   ### File Specific:
    1212   main-programmer: bottac@ee.ethz.ch
     
    2828{
    2929public:
    30 // Constructors
    31  BspManager();
     30  // Constructors
     31  BspManager();
    3232
    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  
     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
    4040
    4141private:
    42 // Functions
    43  BspFile*  bspFile;
    44  BspTreeNode* root;
    45  const BspTreeNode* getLeaf(const BspTreeNode*  node, const Vector& cam) const;  // 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;
     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;
    5555
    5656
    57 // Vectors to store the visible faces
    58  ::std::deque<int> trasparent; // the ones with transparancy go here
    59  ::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.
    6060
    6161};
Note: See TracChangeset for help on using the changeset viewer.