home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / extensions / server / PEX / include / ddpex4.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-15  |  3.4 KB  |  132 lines

  1. /* $XConsortium: ddpex4.h,v 5.1 91/02/16 09:57:38 rws Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright (c) 1989, 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Sun Microsystems,
  13. the X Consortium, and MIT not be used in advertising or publicity 
  14. pertaining to distribution of the software without specific, written 
  15. prior permission.  
  16.  
  17. SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  18. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 
  19. SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  20. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #include "ddpex.h"
  28.  
  29. #ifndef DDPEX4_H
  30. #define DDPEX4_H
  31.  
  32. /*  structures for ddPEX Level 4 Workstation Support */
  33.  
  34. typedef struct {
  35.     DrawablePtr     pDrawable;
  36.     Drawable        drawableId;
  37.     diLUTHandle     pMarkerLUT;        /* handles to LUTs and NS */
  38.     diLUTHandle     pTextLUT;
  39.     diLUTHandle     pLineLUT;
  40.     diLUTHandle     pIntLUT;
  41.     diLUTHandle     pEdgeLUT;
  42.     diLUTHandle     pColourLUT;
  43.     diLUTHandle     pDepthCueLUT;
  44.     diLUTHandle     pLightLUT;
  45.     diLUTHandle     pColourAppLUT;
  46.     diLUTHandle     pPatternLUT;
  47.     diLUTHandle     pFontLUT;
  48.     diNSHandle      pHighInclSet;
  49.     diNSHandle      pHighExclSet;
  50.     diNSHandle      pInvisInclSet;
  51.     diNSHandle      pInvisExclSet;
  52.     ddEnumTypeIndex    bufferMode;
  53. } ddWksInit;
  54.  
  55. typedef struct {
  56.     ddBYTE    viewRep;
  57.     ddBYTE    markerBundle;
  58.     ddBYTE    textBundle;
  59.     ddBYTE    lineBundle;
  60.     ddBYTE    interiorBundle;
  61.     ddBYTE    edgeBundle;
  62.     ddBYTE    colourTable;
  63.     ddBYTE    patternTable;
  64.     ddBYTE    wksTransform;
  65.     ddBYTE    highlightFilter;
  66.     ddBYTE    invisFilter;
  67.     ddBYTE    hlhsrMode;
  68.     ddBYTE    strModify;
  69.     ddBYTE    postStr;
  70.     ddBYTE    unpostStr;
  71.     ddBYTE    deleteStr;
  72.     ddBYTE    refModify;
  73.     ddBYTE    bufferModify;
  74.     ddBYTE    lightTable;
  75.     ddBYTE    depthCueTable;
  76.     ddBYTE    colourApproxTable;
  77. } ddWksDynamics;
  78.  
  79. typedef struct {
  80.     diNSHandle    incl;
  81.     diNSHandle    excl;
  82. } ddNSPair;
  83.  
  84. typedef struct {
  85.     ddULONG        numPairs;
  86.     ddULONG        maxPairs;
  87.     ddNSPair     *pPairs;
  88. } listofNSPair;
  89.  
  90. typedef struct {
  91.     ddULONG            id;
  92.     ddUSHORT            status;
  93.     ddCoord3D        position;        /* search reference position */
  94.     ddFLOAT            distance;        /* search distance */    
  95.     ddUSHORT        ceiling;        /* search ceiling */
  96.     ddBOOL            modelClipFlag;    /* model clip flag */
  97.     listofObj        *startPath;        /* start path */
  98.     listofNSPair        normal;
  99.     listofNSPair        inverted;
  100. } ddSCStr;
  101.  
  102. typedef struct {
  103.     ddTableIndex    index;
  104.     ddUSHORT    unused;
  105.     ddViewEntry    view;
  106. } ddViewRep;
  107.  
  108. typedef struct {
  109.     ddUSHORT    whence;
  110.     ddUSHORT    unused;
  111.     ddLONG        offset;
  112. } ddElementPos;
  113.  
  114. typedef struct {
  115.     ddElementPos    position1;
  116.     ddElementPos    position2;
  117. } ddElementRange;
  118.  
  119. typedef struct {
  120.         ddSHORT        x;
  121.         ddSHORT        y;
  122. } ddDeviceCoord2D;
  123.  
  124. typedef struct {
  125.     ddDeviceCoord2D    position;
  126.     ddFLOAT         distance;
  127. } ddPC_DC_HitBox;
  128.  
  129. typedef  ddNpcSubvolume ddPC_NPC_HitVolume;
  130.  
  131. #endif  /* DDPEX4_H  */
  132.