home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / devel5 / cursor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-20  |  1.5 KB  |  34 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 void cursor_move(int x, int y);  /* move cursor if visible */
  13. extern int cursor_hide(void);               /* erase cursor */
  14. extern int cursor_forget(void);             /* will be erased by redraw: ignore it! */
  15. extern void cursor_show(int page);      /* redisplay cursor */
  16. extern int move_2D(PDRIVER *d, int *x, int *y, unsigned *b);
  17. extern int move_till_click(PDRIVER *d, unsigned b, int *x, int *y); /* b is button mask */
  18. extern int can_point_2D(void);
  19. extern int move_and_select_2D(PDRIVER *d);
  20. extern void pointer_to_world(POINTER *p, VIEW *v, long *x, long *y, long *z);
  21. extern void rotate_to_view( VIEW *v, long *x, long *y, long *z);
  22. extern int glove_update(PDRIVER *d, POINTER *p); /* read glove, update positions */
  23. extern int load_glove_cursor(SEGMENT *body_seg, PDRIVER *gd, char *glove_fname);
  24. extern int load_3D_cursor(SEGMENT *body_seg, PDRIVER *gd, char *cursor_fname);
  25. extern int cursor_update3D(PDRIVER *d, POINTER *p); /* read pointer, update positions */
  26. extern SEGMENT *manip_data(PDRIVER *d, long *x, long *y, long *z);
  27.  
  28. #define FREE_DO   0            /* commands to manipulation */
  29. #define GRASP_DO  1
  30. #define ROTATE_DO 2
  31. #define SELECT_DO 3
  32.  
  33. /* End of cursor.h */
  34.