home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / misc / splines.lha / Splines / spline.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-16  |  2.4 KB  |  95 lines

  1. /* The routines in this file are copyright (c) 1987 by Helene (Lee) Taran.
  2.  * Permission is granted for use and free distribution as long as the
  3.  * original author's name is included with the code.
  4.  */
  5.  
  6. #ifndef SPLINE_H
  7. #define SPLINE_H
  8.  
  9. #define INTERLACED_VIEW
  10.  
  11. #ifdef  INTERLACED_VIEW
  12. #define VIEWMODE  (HIRES | INTERLACE)
  13. #define XADJUSTMENT 2
  14. #define YADJUSTMENT 2
  15. #else
  16. #define YADJUSTMENT 1
  17. #ifdef  HIRESVIEW
  18. #define VIEWMODE  HIRES
  19. #define XADJUSTMENT 2
  20. #else
  21. #define VIEWMODE 0
  22. #define XADJUSTMENT 1
  23. #endif
  24. #endif
  25.  
  26. #define SCREEN_WIDTH    (XADJUSTMENT * 320)
  27.  
  28. #if 1
  29. #define SCREEN_HEIGHT   (YADJUSTMENT * 200)
  30. #else
  31. #define SCREEN_HEIGHT   (YADJUSTMENT * 256) /*GMD - a PAL test (works)*/
  32. #endif
  33.  
  34. #define CONTROL_RADIUS   4
  35. #define WINDOW_LEFT 0
  36. #define WINDOW_TOP 11
  37. #define WINDOW_HEIGHT (SCREEN_HEIGHT - WINDOW_TOP)   
  38. #define WINDOW_WIDTH  SCREEN_WIDTH
  39.  
  40. #define DEPTH  2     /* Number of bit-planes to use for color definition */
  41. #define COLORCOUNT (1L<<DEPTH)   /* Number of colors that we can use     */
  42.  
  43. #if 0
  44. /*GMD*/
  45.  
  46. #define DETAILPEN    0l  /* color register for details  & background */
  47. #define BLOCKPEN     1l  /* color register for filling large areas   */
  48. #endif
  49.  
  50. #define OUTLINEPEN   2l  /* color register for outlined areas */
  51. #define ERASE        0l  /* background color */
  52. #define CURVECOLOR   3l  /* color register for drawing curve */
  53. #define AFRAME_COLOR 2l  /* color register for drawing construction lines */
  54.  
  55.  
  56. /* GMD; CASE_ added to avoid name collisions  */
  57.  
  58. #define CASE_INTUITION     1
  59. #define CASE_GRAPHICS      2
  60. #define CASE_SCREEN        4
  61. #define CASE_WINDOW        8
  62. #define CASE_POPUP_MENU   16
  63. #define CASE_MENU_PACKAGE 32
  64. #define CASE_LAYERS       64
  65.  
  66. /* The following constants are used to select/identify a command in
  67.  * in the Point Menu 
  68.  */
  69. #define ADD_AFTER     1
  70. #define ADD_BEFORE    2
  71. #define MOVE_POINT    3
  72. #define REMOVE_POINT  4
  73.  
  74. /* The following constants are used to select/identify a command in 
  75.  * the Curve Menu
  76.  */
  77. #define OPENB_NATURAL 1
  78. #define OPENB_TRIPLE  2
  79. #define OPEN_INTRPL   3
  80. #define CLOSEDB       4
  81. #define CLOSED_INTRPL 5
  82. #define REDRAW        6
  83. #define TOGGLEAFRAME  7
  84. #define QUIT          8
  85.  
  86. #define INTUITION_VERSION 0
  87. #define GFX_VERSION       0
  88. #define LAYERS_VERSION    0
  89.  
  90. #define POINT(list_element) ((REAL_POINT *)list_element->contents)
  91.  
  92. #define MAXG             34  /* maximum number of points for interpolation */
  93.                              /* NOTE: you don't want to change this value! */
  94. #endif
  95.