home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / GL / curve / curve.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.0 KB  |  88 lines

  1. /*
  2.  * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /*
  18.  *
  19.  * curve.h
  20.  *
  21.  * Part of the "Curve Demo"
  22.  * by Howard Look for Silicon Graphics
  23.  *
  24.  * June, 1989
  25.  *
  26.  * This file contains all of the defines used in the curve demo.
  27.  *
  28.  */
  29.  
  30. /* Basis types */
  31. #define BEZIER        1
  32. #define CARDINAL    2
  33. #define BSPLINE        3
  34.  
  35. /* Display modes */
  36. #define TWO_D    1
  37. #define THREE_D    2
  38.  
  39. /* Precision menu. Make sure these are integer multiples. */
  40. #define MIN_PRECISION    5
  41. #define MAX_PRECISION    30
  42. #define PRECISION_STEP    5
  43.  
  44. /* Speed menu. These must also be integer multiples. */
  45. #define MIN_SPEED        10
  46. #define MAX_SPEED        100
  47. #define SPEED_STEP        10
  48. #define DEFAULT_SPEED    10
  49.  
  50. /* Linestyles */
  51. #define SOLID    0
  52. #define DOTTED    1
  53. #define DASHED    2
  54.  
  55. /* Patterns for the linestyles... */
  56. /* 2 pixels on, 2 pixels off */
  57. #define DOTTED_PATTERN 0xCCCC
  58. /* 8 pixels on, 8 pixels off */
  59. #define DASHED_PATTERN 0xFF00
  60.  
  61. #define ON    1
  62. #define OFF    0
  63.  
  64. #define PI 3.141592653589
  65.  
  66. /* turns radians into degrees */
  67. #define RAD *180.0/PI
  68. /* and vice versa */
  69. #define DEG *PI/180.0
  70.  
  71. /* Maximum control points markers. It gets a little ugly, but... */
  72. #define MAX_MARKERS 999
  73.  
  74. /* Whizbangs !
  75.  * New whizbangs must be defined here, built in whiz.c, added to menus
  76.  * in menus.c, and changed in control.c
  77.  */
  78. #define COIL        1
  79. #define BEDSPRING    2
  80. #define DOUGHNUT    3
  81.  
  82. /* Hardware types */
  83. #define ECLIPSE8    1
  84. #define ECLIPSE24    2
  85. #define GT            3
  86.  
  87.  
  88.