Category : C Source Code
Archive   : IRITS.ZIP
Filename : XGRAPHIC.H

 
Output of file : XGRAPHIC.H contained in archive : IRITS.ZIP
/*****************************************************************************
* "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__ */


  3 Responses to “Category : C Source Code
Archive   : IRITS.ZIP
Filename : XGRAPHIC.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/