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

  1. /*
  2.  * Copyright 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. // Cockpit.h - definition of the render class
  19. //////////////////////////////////////////////////////////////////////
  20.  
  21. #ifndef RENDER_H
  22. #define RENDER_H
  23.  
  24. #include "Defines.h"
  25. #include <fmclient.h>
  26. #include <gl/sphere.h>
  27. extern "C" {
  28. #include "shapes.h"
  29. }
  30.  
  31. // display modes
  32. #define RENDER_WIREFRAME 0
  33. #define RENDER_FILLED 1
  34.  
  35. // colors used in the overlay planes
  36. #define CLEAR 0
  37. #define GREY1 1
  38. #define GREY2 2
  39. #define GREY3 3
  40.  
  41. // materials
  42. #define GREY_PLASTIC 1
  43. #define BLACK_PLASTIC 2
  44. #define RED_METAL 3
  45. #define CHARCOAL 4
  46. #define CHROME 5
  47. #define ASPHALT 6
  48. #define YELLOW_ASPHALT 7
  49. #define GREY_RUBBER 8
  50. #define WOOD 9
  51. #define LEAVES 10
  52. #define GREY_METAL 11
  53.  
  54. // lights
  55. #define DOME_LIGHT 1
  56. #define SUN 2
  57.  
  58. // cpack colors
  59. #define ORANGE 0x007FFF
  60. #define LIGHT_GREY 0x101010
  61. #define MED_GREY 0x7F7F7F
  62. #define DARK_GREY 0x9F9F9F
  63. #define DASH_GREY 0x303030
  64. #define MED_RED 0x7F
  65. #define ASPHALT_COL 0x0C0C0C
  66. #define YELLOW_ASPHALT_COL 0x00CCCC
  67. #define GRASS_COL 0x209F20
  68. #define SKY_COL 0xFFA000
  69. #define FOG_COL 0x7F7F7F
  70.  
  71. // patterns
  72. #define HOLES 1
  73.  
  74. void init_render();
  75. void init_colormaps();
  76.  
  77. // sweeps the segment defined by r-s counter-clockwise by angle
  78. void sweep(float r[2], float s[2], float angle);
  79.  
  80. // does a v2f
  81. void vertex(float a, float b);
  82.  
  83. #endif
  84.