Changeset 5430 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Oct 24, 2005, 9:21:15 PM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/abstract_model.h
r5427 r5430 116 116 } sAnimState; 117 117 118 118 //! Model Information definitions 119 119 typedef struct 120 120 { 121 unsigned int numVertices; 122 unsigned int numTriangles; 123 unsigned int numNormals; 121 unsigned int numVertices; //!< number of Vertices in the Model 122 unsigned int numTriangles; //!< number of triangles in the Model 123 unsigned int numNormals; //!< how many Normals in the Model 124 124 unsigned int numTexCoor; 125 125 126 const float* pVertices; 127 sTriangleExt* pTriangles; 128 const float* pNormals; 129 const float* pTexCoor; 126 const float* pVertices; //!< array of the Vertives 127 sTriangleExt* pTriangles; //!< array of all triangles 128 const float* pNormals; //!< array of the Normals 129 const float* pTexCoor; //!< array of the Texture Coordinates 130 130 131 131 } modelInfo; … … 140 140 virtual ~AbstractModel() {} 141 141 142 inline modelInfo* getModelInfo() const { return this->pModelInfo; }142 inline const modelInfo* getModelInfo() const { return this->pModelInfo; } 143 143 144 144 145 145 protected: 146 modelInfo* pModelInfo; //!< Reference to the modelInfo defined in abstract_model.h 147 Quadtree* quadtreel; //!< Reference to the quadtree of the object, NULL if not defined 146 modelInfo* pModelInfo; //!< Reference to the modelInfo 148 147 }; 149 148 150 151 152 153 154 149 #endif /* _ABSTRACT_MODEL_H */ -
trunk/src/lib/graphics/importer/model.cc
r5427 r5430 21 21 22 22 #include "stdlibincl.h" 23 #include <math.h>24 25 23 #include <stdarg.h> 26 24 -
trunk/src/lib/graphics/spatial_separation/quadtree.cc
r5234 r5430 31 31 * standard constructor 32 32 */ 33 Quadtree::Quadtree ( modelInfo* pModelInfo, const int treeDepth)33 Quadtree::Quadtree (const modelInfo* pModelInfo, const int treeDepth) 34 34 { 35 35 this->setClassID(CL_QUADTREE, "Quadtree"); -
trunk/src/lib/graphics/spatial_separation/quadtree.h
r5039 r5430 24 24 25 25 public: 26 Quadtree( modelInfo* pModelInfo, const int treeDepth);26 Quadtree(const modelInfo* pModelInfo, const int treeDepth); 27 27 virtual ~Quadtree(); 28 28 … … 42 42 QuadtreeNode* rootNode; //!< reference to the root node of the quadtree 43 43 QuadtreeNode** nodes; //!< reference to all quadtree nodes (only leafs of the quad tree) 44 modelInfo*pModelInfo; //!< reference to the modelInfo of the object44 const modelInfo* pModelInfo; //!< reference to the modelInfo of the object 45 45 int treeDepth; //!< depth of the tree 46 46 -
trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r5427 r5430 68 68 * standard constructor 69 69 */ 70 QuadtreeNode::QuadtreeNode( modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth)70 QuadtreeNode::QuadtreeNode(const modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth) 71 71 { 72 72 /* save all important variables localy */ -
trunk/src/lib/graphics/spatial_separation/quadtree_node.h
r5405 r5430 32 32 Rectangle* rect, int treeDepth, const int maxDepth, int index 33 33 ); 34 QuadtreeNode( modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth);34 QuadtreeNode(const modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth); 35 35 virtual ~QuadtreeNode(); 36 36 … … 82 82 unsigned int numTriangles; //!< number of triangles of the Node 83 83 unsigned int numVertices; //!< number of vertices of the node 84 modelInfo*pModelInfo; //!< reference to the modelInfo of the object84 const modelInfo* pModelInfo; //!< reference to the modelInfo of the object 85 85 Rectangle* pDimension; //!< pointer to the local rectangle properties 86 86
Note: See TracChangeset
for help on using the changeset viewer.