home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / stereo / GL_5.2 / get.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  3.8 KB  |  114 lines

  1. /*
  2.  * Copyright (C) 1984-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. #ifndef    __GL_GET_H__
  19. #define    __GL_GET_H__
  20.  
  21. /* definitions for returned values of get* routines */
  22.  
  23.  
  24. /* bits in value returned by getbuffer */
  25.  
  26. #define BCKBUFFER        0x1
  27. #define FRNTBUFFER        0x2
  28. #define DRAWZBUFFER        0x4
  29.  
  30. /* values returned by getdisplaymode */
  31.  
  32. #define DMRGB            0    /* RGB single buffer */
  33. #define DMSINGLE        1    /* color map single buffer */
  34. #define DMDOUBLE        2    /* color map double buffer */
  35. #define DMRGBDOUBLE        5    /* RGB double buffer */
  36.  
  37. /* values returned by getmonitor */
  38.  
  39. #define HZ30            0    /* 30 HZ monitor */
  40. #define HZ60            1    /* std 60 HZ monitor */
  41. #define NTSC            2    /* RS 170 monitor */
  42. #define HDTV            3    /* high definition TV */
  43. #define VGA            4    /* VGA 640 x 496 non'laced */
  44. #define IRIS3K            5    /* 3000 series format 1024 x 768 */
  45. #define PR60            6    /* 1/4 resolution HZ60 (replicated) */
  46. #define PAL            9    /* PAL/SECAM monitor */
  47. #define HZ30_SG            11    /* 30 HZ with sync on green */
  48. #define A343            14    /* RS 343 monitor GT 959 vis lines */
  49. #define STR_RECT        15    /* StereoGraphics Stereo, 1280x492x2 */
  50. #define VOF0            16    /* User defined video format 0 */
  51. #define VOF1            17    /* User defined video format 1 */
  52. #define VOF2            18    /* User defined video format 2 */
  53. #define VOF3            19    /* User defined video format 3 */
  54. #define SGI0            20    /* SGI format 650 x 650 non'laced */
  55. #define SGI1            21    /* SGI format 1280 x 485 'laced */
  56. #define SGI2            22    /* SGI format 645 x 485 non'laced */
  57. #define HZ72            23    /* multi-scan 72 HZ monitor */
  58. #define HZ50            24    /* 50HZ monitor timing*/
  59. #define HZ76            25    /* 76HZ monitor timing*/
  60. #define HZ70            26    /* 70HZ monitor timing*/
  61. #define STR_BOT            27    /* Stereo, bottom buffer primary */
  62. #define STR_TOP            28    /* Stereo, top buffer primary */
  63. #define SGI_VIDEO_FORMAT_OTHER    999    /* undefined video format */
  64. /* VOF IDs from 1000 on are reserved for custom customer codes */
  65.  
  66. /* values returned by getvideo(GLVIDEO_REG) */
  67.  
  68. #define GL_VIDEO_REG    0x00800000
  69. #define GLV_GENLOCK    0x00000001    /* genlock to external signal */
  70. #define GLV_UNBLANK    0x00000002    /* unblank the screen */
  71. #define GLV_SRED    0x00000004    /* provide sync on red */
  72. #define GLV_SGREEN    0x00000008    /* provide sync on green */
  73. #define GLV_SBLUE    0x00000010    /* provide sync on blue */
  74. #define GLV_SALPHA    0x00000020    /* provide sync on alpha */
  75. #define GLV_TTLGENLOCK    0x00000080    /* expect TTL level genlock source */
  76.                     /* otherwise, its normal video level */
  77. #define GLV_TTLSYNC    GLV_TTLGENLOCK    /* OBSOLETE, keep for compatibility */
  78. #define GLV_GREENGENLOCK 0x0000100    /* expect genlock source on green input */
  79.                     /* otherwise, its on sync input */
  80.  
  81. /* individual hit bits returned by gethitcode */
  82.  
  83. #define LEFTPLANE        0x0001
  84. #define RIGHTPLANE        0x0002
  85. #define BOTTOMPLANE        0x0004
  86. #define TOPPLANE        0x0008
  87. #define NEARPLANE        0x0010
  88. #define FARPLANE        0x0020
  89.  
  90.  
  91. /* obsolete symbols */
  92.  
  93. #define    GETDEF            __GL_GET_H__
  94.  
  95. #define NOBUFFER        0x0
  96. #define BOTHBUFFERS        0x3
  97.  
  98. #define DMINTENSITYSINGLE    3
  99. #define DMINTENSITYDOUBLE     4
  100.  
  101. #define MONSPECIAL        0x20
  102. #define MONA            5
  103. #define MONB            6
  104. #define MONC            7
  105. #define MOND            8
  106.  
  107. #define MON_ALL            12
  108. #define MON_GEN_ALL        13
  109.  
  110. #define CMAPMULTI        0
  111. #define CMAPONE            1
  112.  
  113. #endif    /* !__GL_GET_H__ */
  114.