Subversion Repositories Games.Carmageddon

Rev

Rev 18 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _SKIDMARK_H_
  2. #define _SKIDMARK_H_
  3.  
  4. #include "brender/br_types.h"
  5. #include "dr_types.h"
  6.  
  7. extern char* gBoring_material_names[2];
  8. extern char* gMaterial_names[2];
  9. extern tSkid gSkids[100];
  10.  
  11. void StretchMark(tSkid* pMark, br_vector3* pFrom, br_vector3* pTo, br_scalar pTexture_start);
  12.  
  13. br_material* MaterialFromIndex(int pIndex);
  14.  
  15. void AdjustSkid(int pSkid_num, br_matrix34* pMatrix, int pMaterial_index);
  16.  
  17. int FarFromLine2D(br_vector3* pPt, br_vector3* pL1, br_vector3* pL2);
  18.  
  19. int Reflex2D(br_vector3* pPt, br_vector3* pL1, br_vector3* pL2);
  20.  
  21. void InitSkids(void);
  22.  
  23. void HideSkid(int pSkid_num);
  24.  
  25. void HideSkids(void);
  26.  
  27. br_scalar SkidLen(int pSkid);
  28.  
  29. void SkidSection(tCar_spec* pCar, int pWheel_num, br_vector3* pPos, int pMaterial_index);
  30.  
  31. void SkidMark(tCar_spec* pCar, int pWheel_num);
  32.  
  33. void InitCarSkidStuff(tCar_spec* pCar);
  34.  
  35. void SkidsPerFrame(void);
  36.  
  37. void RemoveMaterialsFromSkidmarks(void);
  38.  
  39. #endif
  40.