home *** CD-ROM | disk | FTP | other *** search
/ ftp.hitl.washington.edu / ftp.hitl.washington.edu.tar / ftp.hitl.washington.edu / pub / people / habib / kodak / zeadme.txt < prev   
Text File  |  2000-04-18  |  3KB  |  67 lines

  1. typedef struct TypeTransform {
  2.  
  3. SFVec3f translation;
  4.    |float x,y,z;
  5. Type_Rotation rotation;   
  6.    |float x,y,z,teta;
  7.  
  8. Type_Transform *FatherTransform;
  9.  
  10. Type_Transform **ChildrenTransform;
  11. int    numChildTrans; // this is the total number of sons.
  12. int    indChildTrans; // this is the actual indice of sons.
  13.  
  14. Type_Shape     **ChildrenShape;
  15. int    numChildShape; // this is the total number of sons.
  16. int    indChildShape; // this is the actual indice of sons.
  17. int    FlagChildren;  // 1 --> there is children 0 --> there is none.
  18.  
  19. int ShapeLeave;      // To say if This node has a Shape Leave or not.
  20. Type_Shape      *Shape; 
  21.      |int Acc;
  22.      |int Cro; 
  23.      |int Id;
  24.      |Type_Appearance Appearance
  25.      |      | Type_Material material             
  26.      |            | SFFloat ambientIntensity; 
  27.      |            | SFColor diffuseColor;   | float r,g,b  
  28.      |            | SFColor emissiveColor;  | float r,g,b
  29.      |            | float   shininess; 
  30.      |            | SFColor specularColor;  | float r,g,b
  31.      |            | SFFloat transparency;
  32.      |
  33.      |Type_Texture    Texture   | unsigned char   *image;
  34.      |                          | int              im_width[1];
  35.      |                          | int              im_height[1];
  36.      |                          | unsigned int     tex_name[10];
  37.      |                          | char             tex_blk[40];
  38.      |
  39.      |Type_Geometry   Geometry  
  40.            |Type_IndexedFaceSet IndexedFaceSet|MFColor color;       |SFColor *pt; |float r,g,b;
  41.                                               |                     |int     col_el;            
  42.                                               |MFInt32 colorIndex;  |__int32    *pElements;
  43.                                               |                     |int        num_el;
  44.                                               |MFvec3f coord;       |SFVec3f *pt  |float x,y,z;
  45.                                               |                     |int      num_el;
  46.                                               |MFInt32 coordIndex;  |__int32    *pElements;
  47.                                               |                     |int        num_el;
  48.                                               |MFvec3f normal;      |SFVec3f *pt  |float x,y,z;
  49.                                               |                     |int      num_el;
  50.                                               |MFInt32 normalIndex; |__int32    *pElements;
  51.                                               |                     |int        num_el;
  52.                                               |Pixel   *texCoord;   |float x,y;
  53.                                               |MFInt32 texCoordIndex|__int32    *pElements;
  54.                                               |                     |int        num_el;
  55.                                               |SFBool  ccw;
  56.                                               |SFBool  solid;
  57.                                               |int     num_el;
  58.  
  59.  
  60. Node_type node_type;
  61. int       Acc;
  62. int       Cro;
  63.        } Type_Transform;
  64.  
  65.  
  66.  
  67. Spheretexname  TEX_WIDTH_SPHERE, TEX_HEIGHT_SPHERE,   TEX_BUF_SPHERE[0][0]