home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- * A replacer for the MSDOS graphics.h (note this is xgraphic.h). *
- * *
- * Written by: Gershon Elber Ver 0.1, Apr. 1990 *
- *****************************************************************************/
-
- #ifndef __MSDOS__
-
- #ifndef XGRAPHIC_H /* Define only once. */
- #define XGRAPHIC_H
-
- #define BLACK 0 /* Must be inorder of XViewColorDefs - xgrphgen.c. */
- #define RED 1
- #define GREEN 2
- #define BLUE 3
- #define YELLOW 4
- #define CYAN 5
- #define MAGENTA 6
- #define WHITE 7
-
- #define MAX_COLOR 15
-
- typedef enum {
- EVENT_QUIT,
- EVENT_SCR_OBJ_TGL,
- EVENT_PERS_ORTHO_TGL,
- EVENT_PERS_ORTHO_Z,
- EVENT_ROTATE_X,
- EVENT_ROTATE_Y,
- EVENT_ROTATE_Z,
- EVENT_TRANSLATE_X,
- EVENT_TRANSLATE_Y,
- EVENT_TRANSLATE_Z,
- EVENT_SCALE,
- EVENT_DEPTH_CUE,
- EVENT_SAVE_MATRIX,
- EVENT_SAVE_PS,
- EVENT_RESET_MATRIX
- } GraphicEventType;
-
- GraphicEventType GetGraphicEvent(RealType *ChangeFactor, char **ToggleStr);
- int IsAbortKeyPressed(void);
- int GraphicFlush(void);
-
- #endif /* XGRAPHIC_H */
- #endif /* __MSDOS__ */
-