- Timestamp:
- 06/26/06 17:36:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.h
r1057 r1058 4 4 #include "GeoSubMesh.h" 5 5 #include "tlista.h" 6 #include "TMatrix.h"7 6 #include "VertexData.h" 8 7 #include "Leaf.h" … … 24 23 25 24 ActiveLeafNode *Acth; // first active leaf 26 int ppio, final; 27 int nhactivas; 28 TMatrix mat_aux; 25 int begin, final; 26 int active_leaf_count; 29 27 30 28 Foliage (const Geometry::SubMesh *, const char *simpSeq, Geometry::CREATEVERTEXDATAFUNC vdfun=NULL, Geometry::CREATEINDEXDATAFUNC idfun=NULL); … … 32 30 virtual ~Foliage (void); // Destructor 33 31 34 //culling 35 void Culling (float frustum[6][4]); 36 bool LeafinFrustum ( int i, float frustum[6][4]); 37 38 bool IsActive( int num) const; 39 int ResolucionV ( char c, float rva, float rvb,float rvc, float rvd, float radio); 40 void ColapsaHoja (int, int&); 41 void SplitHoja (int, int&); 42 bool Forzar_Split(int, int, int&); 43 int AnteriorActivo (int h); 44 int PosteriorActivo (int h); 45 46 47 // resolucion constante 48 int ResolucionC (float dist, float dmax, float dmin); 49 void AjusteHojas( int nhojas); 50 void RCecol ( int nhojas); 51 void RCsplit ( int nhojas); 32 void CalculateLOD(int nhojas); 52 33 53 34 Geometry::VertexData *vertexdata; … … 55 36 56 37 Leaf *Leaves; 57 ActiveLeafNode *MinDet; // primera hoja activa58 int nHojas;59 int TotHojas;38 ActiveLeafNode *MinDet; // first active leaf 39 int leafCount; 40 int leafTotal; 60 41 61 float cx,cy,cz; //centro de la copa// para los impostores y resolucion variable 62 float rad; //radio de la esfera envolvente 63 int minHojas; 64 int TotVerts; 42 int minLeaves; 43 int TotalVerts; 65 44 66 45 private: … … 68 47 Geometry::CREATEINDEXDATAFUNC create_index_data_func; 69 48 49 bool IsActive( int num) const; 50 int PrevActive (int h); 51 int NextActive (int h); 52 53 void RCecol(int nhojas); 54 void RCsplit(int nhojas); 55 70 56 void ReadLeafs(const Geometry::SubMesh *); 71 57 void ReadVertices(const Geometry::SubMesh *); 72 58 bool ReadSimpSeq(const char*); /// returns true when successful 73 void RellenoRaiz(void);59 void FillRoot(void); 74 60 75 61 void GetNormalH (Leaf&); 76 // void GetNormalT(Tronco&);77 62 78 63 void CrossProduct(const float *v1, const float *v2, float *res); 79 64 void Normalize(const float *v, float *res); 80 65 // void CalculaNormalesVertice(void); 81 void Calcula TexCoordsYNorms(void);66 void CalculateTexCoordsAndNorms(void); 82 67 83 68 };
Note: See TracChangeset
for help on using the changeset viewer.