home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 August - Disc 3 / chip_20018103_hu.iso / amiga / chipgame / 3dgpl.lha / trans.h < prev   
C/C++ Source or Header  |  1996-11-25  |  1KB  |  36 lines

  1. #ifndef _TRANS_H_
  2. #define _TRANS_H_
  3.  
  4. /** 3DGPL *************************************************\
  5.  *  ()                                                    *
  6.  *  Header for basic 3-d math.                            *
  7.  *                                                        *
  8.  *  trans-fl.c               3-D transformations, float;  *
  9.  *  trans-fx.c               same using fixed point math; *
  10.  *                                                        *
  11.  *  (6/1995) By Sergei Savhenko. (savs@cs.mcgill.ca).     *
  12.  *  Copyright (c) 1995 Sergei Savchenko.                  *
  13.  *  THIS SOURCE CODE CAN'T BE USED FOR COMERCIAL PURPOSES *
  14.  *  WITHOUT AUTHORISATION                                 *
  15. \**********************************************************/
  16.  
  17. #include <string.h>
  18.  
  19. #define T_LOG_FOCUS 8                       /* log perspective foreshortening */
  20.  
  21. void T_init_math(void);
  22.  
  23. void T_translation(int *from,int *to,int length,int addx,int addy,int addz);
  24. void T_scaling(int *from,int *to,int length,int mulx,int muly,int mulz);
  25.  
  26. void T_set_world_rotation(int alp,int bet,int gam);
  27. void T_world_rotation(int *from,int *to,int length);
  28. void T_set_self_rotation(int alp,int bet,int gam);
  29. void T_self_rotation(int *from,int *to,int length);
  30.  
  31. void T_perspective(int *from,int *to,int dimension,int length);
  32.  
  33. /**********************************************************/
  34.  
  35. #endif
  36.