Subversion Repositories Games.Carmageddon

Rev

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

  1. #ifndef _TRANSFRM_H_
  2. #define _TRANSFRM_H_
  3.  
  4. #include "brender/br_types.h"
  5.  
  6. extern br_uint_8 _CombineTransforms[7][7];
  7. #define BrTransformCombineTypes(a, b) (_CombineTransforms[(a)][(b)])
  8. #define BrTransformTypeIsLP(a) ((a) != BR_TRANSFORM_MATRIX34)
  9. #define BrTransformTypeIsMatrix34(a) ((a) <= BR_TRANSFORM_MATRIX34_LP)
  10.  
  11. void BrTransformToMatrix34(br_matrix34* mat, br_transform* xform);
  12.  
  13. void BrMatrix34PreTransform(br_matrix34* mat, br_transform* xform);
  14.  
  15. void BrMatrix34PostTransform(br_matrix34* mat, br_transform* xform);
  16.  
  17. void BrMatrix4PreTransform(br_matrix4* mat, br_transform* xform);
  18.  
  19. void BrMatrix34ToTransform(br_transform* xform, br_matrix34* mat);
  20.  
  21. void BrTransformToTransform(br_transform* dest, br_transform* src);
  22.  
  23. #endif
  24.