home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / IRITS.ZIP / XGRAPHIC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-05  |  1.3 KB  |  52 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * A replacer for the MSDOS graphics.h (note this is xgraphic.h).         *
  7. *****************************************************************************/
  8.  
  9. #ifndef __MSDOS__
  10.  
  11. #ifndef    XGRAPHIC_H                    /* Define only once. */
  12. #define    XGRAPHIC_H
  13.  
  14. #define BLACK        0 /* Must be inorder of XViewColorDefs - xgrphgen.c. */
  15. #define BLUE        1
  16. #define GREEN        2
  17. #define CYAN        3
  18. #define RED        4
  19. #define MAGENTA     5
  20. #define BROWN        6
  21. #define LIGHTGRAY    7
  22. #define DARKGRAY    8
  23. #define LIGHTBLUE    9
  24. #define LIGHTGREEN    10
  25. #define LIGHTCYAN    11
  26. #define LIGHTRED    12
  27. #define LIGHTMAGENTA    13
  28. #define YELLOW        14
  29. #define WHITE        15
  30.  
  31. #define MAX_COLOR    15
  32.  
  33. typedef enum {
  34.     EVENT_QUIT,
  35.     EVENT_SCR_OBJ_TGL,
  36.     EVENT_ROTATE_X,
  37.     EVENT_ROTATE_Y,
  38.     EVENT_ROTATE_Z,
  39.     EVENT_TRANSLATE_X,
  40.     EVENT_TRANSLATE_Y,
  41.     EVENT_TRANSLATE_Z,
  42.     EVENT_SCALE,
  43.     EVENT_PERS_ORTHO_TGL
  44. } GraphicEventType;
  45.  
  46. GraphicEventType GetGraphicEvent(RealType *ChangeFactor, char **ToggleStr);
  47. int IsAbortKeyPressed(void);
  48. int GraphicFlush(void);
  49.  
  50. #endif /* XGRAPHIC_H */
  51. #endif /* __MSDOS__ */
  52.