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 / SGIStereo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  3.4 KB  |  131 lines

  1. /*
  2.  * Copyright (C) 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * RESTRICTED RIGHTS LEGEND:
  6.  * Use, duplication or disclosure by the Government is subject to restrictions
  7.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  8.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  9.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  10.  * rights reserved under the Copyright Laws of the United States.
  11.  */
  12. /************************************************************
  13. Copyright 1991 by Silicon Graphics, Inc.
  14.  
  15. Permission to use, copy, modify, and distribute this
  16. software and its documentation for any purpose and without
  17. fee is hereby granted, provided that the above copyright
  18. notice appear in all copies and that both that copyright
  19. notice and this permission notice appear in supporting
  20. documentation, and that the name of SGI not be used in
  21. advertising or publicity pertaining to distribution of the
  22. software without specific prior written permission.
  23. S.G.I. makes no representation about the suitability of
  24. this software for any purpose. It is provided "as is"
  25. without any express or implied warranty.
  26.  
  27. SGI DISCLAIMS ALL WARRANTIES WITH REGARD TO  THIS  SOFTWARE,
  28. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
  29. NESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE  LI-
  30. ABLE  FOR  ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  31. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,  DATA  OR
  32. PROFITS,  WHETHER  IN  AN  ACTION OF CONTRACT, NEGLIGENCE OR
  33. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
  34. THE USE OR PERFORMANCE OF THIS SOFTWARE.
  35.  
  36. ********************************************************/
  37.  
  38.  
  39. #ifndef _SGISTEREO_H_
  40. #define _SGISTEREO_H_
  41.  
  42. #define X_SGIStereoQueryVersion            0
  43. #define X_SGIQueryStereoMode            1
  44. #define X_SGISetStereoMode            2
  45. #define X_SGISetStereoBuffer            3
  46.  
  47. #ifndef _SGISTEREO_SERVER_
  48.  
  49. #ifndef NeedFunctionPrototypes
  50. #if defined(FUNCPROTO) || defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
  51. #define NeedFunctionPrototypes 1
  52. #else
  53. #define NeedFunctionPrototypes 0
  54. #endif /* __STDC__ */
  55. #endif /* NeedFunctionPrototypes */
  56.  
  57. #ifndef NeedWidePrototypes
  58. #if defined(NARROWPROTO)
  59. #define NeedWidePrototypes 0
  60. #else
  61. #define NeedWidePrototypes 1        /* default to make interropt. easier */
  62. #endif
  63. #endif
  64.  
  65. #ifdef __cplusplus            /* do not leave open across includes */
  66. extern "C" {                    /* for C++ V2.0 */
  67. #endif
  68.  
  69. extern Bool XSGIStereoQueryExtension (
  70. #if NeedFunctionPrototypes
  71.     Display *        /* dpy */,
  72.     int *        /* event_basep */,
  73.     int *        /* error_basep */
  74. #endif
  75. );
  76.  
  77. extern Status XSGIStereoQueryVersion (
  78. #if NeedFunctionPrototypes
  79.     Display *        /* dpy */,
  80.     int *        /* major_versionp */,
  81.     int *        /* minor_versionp */
  82. #endif
  83. );
  84.  
  85. extern int XSGIQueryStereoMode(
  86. #if NeedFunctionPrototypes
  87.     Display *,
  88.     Window
  89. #endif
  90. );
  91.  
  92. extern Status XSGISetStereoMode(
  93. #if NeedFunctionPrototypes
  94.     Display *,
  95.     Window,
  96.     unsigned short,
  97.     unsigned short,
  98.     int
  99. #endif
  100. );
  101.  
  102. extern Status XSGIMiscSetStereoBuffer(
  103. #if NeedFunctionPrototypes
  104.     Display *,
  105.     Window,
  106.     int
  107. #endif
  108. );
  109.  
  110.  
  111. #ifdef __cplusplus
  112. }                        /* for C++ V2.0 */
  113. #endif
  114.  
  115. #endif /* _SGISTEREO_SERVER_ */
  116.  
  117. /* For SetStereoMode */
  118.  
  119. #define X_STEREO_UNSUPPORTED -1
  120. #define STEREO_OFF 0
  121. #define STEREO_BOTTOM 1
  122. #define STEREO_TOP 2
  123.  
  124. /* For SetStereoBuffer */
  125.  
  126. #define STEREO_BUFFER_NONE 0
  127. #define STEREO_BUFFER_LEFT 1
  128. #define STEREO_BUFFER_RIGHT 2
  129.  
  130. #endif /* _SGISTEREO_H_ */
  131.