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

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * General, visible to others, definitions of GraphGen module.             *
  7. *****************************************************************************/
  8.  
  9. #ifndef    GRAPH_GENERAL_GH                /* Define only once. */
  10. #define    GRAPH_GENERAL_GH
  11.  
  12. enum WindowNameType {
  13.     NO_WINDOW_NAME,
  14.     INPUT_WINDOW_NAME,
  15.     STATUS_WINDOW_NAME,
  16.     VIEW_WINDOW_NAME
  17. };
  18.  
  19. /* And finally the external routine prototypes: */
  20.  
  21. void GGMyMove(double x, double y);
  22. void GGMyDraw(double x, double y);
  23. void GGMySetColor(int color);
  24. #ifdef __MSDOS__
  25. void GGInitGraph(void);
  26. #else
  27. void GGInitGraph(int argc, char **argv);
  28. #endif /* __MSDOS__ */
  29. void GGCloseGraph(void);
  30. void GGGetPoint(double *x, double *y);
  31. void GGDrawPoint(double p[], char title[], int PointColor);
  32. void GGWindowViewPort(double XMin, double YMin,
  33.               double XMax, double YMax, int WindowName);
  34. void GGClearWindow(double XMin, double YMin,
  35.            double XMax, double YMax, int WindowName);
  36. void GGClearAllScreen(void);
  37. void GGXYPutChar(char c, int Color);
  38. void GGXYPutStr(double x, double y, char *s);
  39. void GGGetGraphicLine(double x, double y, char s[], int Length, int Color);
  40. void GGTone(int Frequency, int Duration);
  41.  
  42. #endif /* GRAPH_GENERAL_GH */
  43.