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

  1. /*
  2.  * Copyright 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. /* mview.h
  18.  * -------
  19.  *
  20.  * $Revision: 1.16 $
  21.  *
  22.  */
  23.  
  24. /*
  25.  * A sample is x,y fractional offsets from pixel center and a weight.
  26.  */
  27. typedef struct {
  28.     float x, y, weight;
  29. } SAMPLE;
  30.  
  31. /* 
  32.  * A kernel is an array of samples 
  33.  */
  34. #define MAXSAMPLES  64
  35. typedef struct {
  36.     int numsamples;
  37.     SAMPLE samples[MAXSAMPLES];
  38. } KERNEL;
  39.  
  40. typedef struct model {
  41.     char *name;
  42.     char *bond, *atom;
  43. } MODEL;
  44.  
  45. #define DATA_DIR "/usr/demos/data/atom/"
  46.  
  47. #define RE 1
  48.  
  49. extern char *ProgName;
  50.  
  51. extern int UsePrefposition;
  52. extern int UsePrefsize;
  53. extern int UsePanel;
  54.  
  55. extern int Debug;
  56.  
  57. extern unsigned int BackgroundColor;
  58. extern char *BackgroundImageName;
  59.  
  60. extern int hwGfxType;
  61. extern int hwAccbuf;
  62. extern int hwMultisample;
  63. extern int hwStereo;
  64. extern int hwBitmapSpheres;
  65.  
  66. extern int SphereType;
  67. extern int SphereDepth;
  68. extern int SpherePrim;
  69. extern int Hemi;
  70. extern int Orient;
  71. extern int Multisample;
  72. extern int Stereo;
  73. extern int Perspective;
  74. extern int Depthcue;
  75.  
  76. extern int AtomAccBuf;
  77. extern int BondAccBuf;
  78. extern int InfoAccBuf;
  79. extern int BondSmooth;
  80. extern int BondEndCorrect;
  81. extern int SpinMode;
  82. extern int RollMode;
  83. extern int BitmapSpheres;
  84.  
  85.  
  86. extern int DispAtoms;
  87. extern int DispBonds;
  88. extern int DispInfo;
  89.  
  90. extern int FastDraw;
  91.  
  92. extern int ModelId;
  93. extern MODEL *Models;
  94. extern int NumModels;
  95. extern char **ModelNames;
  96.  
  97. extern int KernelId;
  98. extern char **Kernels;
  99. extern int NumKernels;
  100.  
  101. extern char *KernelFile;
  102.  
  103. extern float ZoomFactor;
  104. extern float RadScaleFactor;
  105. extern float MaxRadScaleFactor;
  106. extern float MinRadScaleFactor;
  107.  
  108. /****************************************************************************/
  109.  
  110. extern void DoHelp(long);
  111. extern void DoExit(int);
  112. extern char *get_basename(char *);
  113. extern void InitKernels(void);
  114. extern int HwAccBuf(void);
  115. extern char *get_basename(char *);
  116.  
  117.