Subversion Repositories Games.Carmageddon

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _PREPMESH_H_
  2. #define _PREPMESH_H_
  3.  
  4. #include "brender/br_types.h"
  5.  
  6. int addEdge(br_uint_16 first, br_uint_16 last);
  7.  
  8. void prepareEdges(v11group* group, br_model* model);
  9.  
  10. void BrPrepareEdges(br_model* model);
  11.  
  12. int FacesCompare(const void* p1, const void* p2);
  13.  
  14. int TVCompare_XYZ(const void* p1, const void* p2);
  15.  
  16. int TVCompare_MXYZUVN(const void* p1, const void* p2);
  17.  
  18. int TVCompare_MVN(const void* p1, const void* p2);
  19.  
  20. br_fraction BrScalarToFractionClamp(br_scalar s);
  21.  
  22. void PrepareFaceNormals(br_model* model);
  23.  
  24. void Smoothing(br_model* model, br_scalar crease_limit, prep_vertex** start, prep_vertex** end);
  25.  
  26. void SmoothingCreased(br_model* model, br_scalar crease_limit, prep_vertex** start, prep_vertex** end);
  27.  
  28. void CopyVertex(v11group* group, int v, prep_vertex* src, br_model* model);
  29.  
  30. void CopyFace(v11group* group, int f, br_face* src, br_model* model);
  31.  
  32. void PrepareGroups(br_model* model);
  33.  
  34. void PrepareBoundingRadius(br_model* model);
  35.  
  36. void PrepareBoundingBox(br_model* model);
  37.  
  38. void RegenerateFaceNormals(v11model* v11m);
  39.  
  40. void RegenerateVertexNormals(v11model* v11m);
  41.  
  42. void BrModelUpdate(br_model* model, br_uint_16 flags);
  43.  
  44. void BrModelClear(br_model* model);
  45.  
  46. #endif
  47.