#ifndef _WGT3D__
#define _WGT3D_

/*
   WordUp Graphics Toolkit V4.5  3D Routines
   Copyright 1996 Chris Egerter
*/

#ifdef __cplusplus
 extern "C" {
#endif

typedef struct
  {
   int x, y, z;
   int sx, sy;
  } point3d;

extern long xct, yct; /* Center of screen */
extern long sx, sy, sz; /* Scale Factors */
extern int move_x;
extern int origin_x;
extern int move_y;
extern int origin_y;
extern int move_z;
extern int origin_z;

extern long icos[360], isin[360]; /* Sin/cos tables */

extern long cos_1, cos_2, cos_3;
extern long sin_1, sin_2, sin_3;

void   winit3d (void);
void   wrotatepoints (point3d *pt, point3d *finp, int maxpt);
void   wsetrotation (int rx, int ry, int rz);

#ifdef __cplusplus
}
#endif

#endif
