home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- * "Irit" - the 3d polygonal solid modeller. *
- * *
- * Written by: Gershon Elber Ver 0.2, Mar. 1990 *
- ******************************************************************************
- * A replacer for the MSDOS graphics.h (note this is xgraphic.h). *
- *****************************************************************************/
-
- #ifndef __MSDOS__
-
- #ifndef XGRAPHIC_H /* Define only once. */
- #define XGRAPHIC_H
-
- #define BLACK 0 /* Must be inorder of XViewColorDefs - xgrphgen.c. */
- #define BLUE 1
- #define GREEN 2
- #define CYAN 3
- #define RED 4
- #define MAGENTA 5
- #define BROWN 6
- #define LIGHTGRAY 7
- #define DARKGRAY 8
- #define LIGHTBLUE 9
- #define LIGHTGREEN 10
- #define LIGHTCYAN 11
- #define LIGHTRED 12
- #define LIGHTMAGENTA 13
- #define YELLOW 14
- #define WHITE 15
-
- #define MAX_COLOR 15
-
- typedef enum {
- EVENT_QUIT,
- EVENT_SCR_OBJ_TGL,
- EVENT_ROTATE_X,
- EVENT_ROTATE_Y,
- EVENT_ROTATE_Z,
- EVENT_TRANSLATE_X,
- EVENT_TRANSLATE_Y,
- EVENT_TRANSLATE_Z,
- EVENT_SCALE,
- EVENT_PERS_ORTHO_TGL
- } GraphicEventType;
-
- GraphicEventType GetGraphicEvent(RealType *ChangeFactor, char **ToggleStr);
- int IsAbortKeyPressed(void);
- int GraphicFlush(void);
-
- #endif /* XGRAPHIC_H */
- #endif /* __MSDOS__ */
-