home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Zone / VRZONE.ISO / mac / PC / REND386 / JIREND / CURSOR.H < prev    next >
C/C++ Source or Header  |  1993-04-11  |  1KB  |  30 lines

  1. /* Cursor routines */
  2.   
  3. /* Written by Dave Stampe, August 1992 */
  4.   
  5. /* Copyright 1992 by Dave Stampe and Bernie Roehl.
  6.    May be freely used to write software for release into the public domain;
  7.    all commercial endeavours MUST contact Bernie Roehl and Dave Stampe
  8.    for permission to incorporate any part of this software into their
  9.    products!
  10.  */
  11.   
  12. extern int move_2D(PDRIVER *d, int *x, int *y, unsigned *b);
  13. extern int move_till_click(PDRIVER *d, unsigned b, int *x, int *y); /* b is button mask */
  14. extern int can_point_2D(void);
  15. extern int move_and_select_2D(PDRIVER *d);
  16. extern void pointer_to_world(POINTER *p, VIEW *v, long *x, long *y, long *z);
  17. extern void rotate_to_view( VIEW *v, long *x, long *y, long *z);
  18. extern int glove_update(PDRIVER *d, POINTER *p); /* read glove, update positions */
  19. extern int load_glove_cursor(SEGMENT *body_seg, PDRIVER *gd, char *glove_fname);
  20. extern int load_3D_cursor(SEGMENT *body_seg, PDRIVER *gd, char *cursor_fname);
  21. extern int cursor_update3D(PDRIVER *d, POINTER *p); /* read pointer, update positions */
  22. extern SEGMENT *manip_data(PDRIVER *d, long *x, long *y, long *z);
  23.   
  24. #define FREE_DO   0        /* commands to manipulation */
  25. #define GRASP_DO  1
  26. #define ROTATE_DO 2
  27. #define SELECT_DO 3
  28.   
  29. /* End of cursor.h */
  30.