home *** CD-ROM | disk | FTP | other *** search
/ Quark 3 / Quark3.iso / KATALOG / ARCHIV / TOOL / T001.ZIP / SOURCE.ZIP / BaseMesh.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-03  |  1.8 KB  |  56 lines

  1. /*
  2. Copyright (C) Matthew 'pagan' Baranowski & Sander 'FireStorm' van Rossen
  3.  
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8.  
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  17. */
  18.  
  19. #ifndef _BASEMESH_H_
  20. #define _BASEMESH_H_
  21.  
  22. /**START OLD STRUCTURES**/
  23.  
  24. //These structures are exactly the same in the md3 file structure.
  25. //It is very likely that these structures will be replaced with a
  26. //very different internal structure.
  27. typedef struct 
  28. {
  29.     //start guess
  30.     float                Mins[3];
  31.     float                Maxs[3];
  32.     float                Position[3];
  33.     float                Scale;
  34.     //end guess
  35.     char                Creator[16];        //i think this is the "creator" name..
  36.                                             //but i'm only guessing.
  37. } BoneFrame;
  38.  
  39. typedef struct 
  40. {
  41.     char                Name[12];            //name of 'tag' as it's usually called in the md3 files
  42.                                             //try to see it as a sub-mesh/seperate mesh-part
  43.     char                unknown[52];        //normally filled with zeros, but there is an exception 
  44.                                             //where it's filled with other numbers...
  45.                                             //it would be logical if it was part of name, because 
  46.                                             //then name would have 64 chars.
  47.     
  48.     //unverified:
  49.     Vec3                Position;            //relative position of tag
  50.     
  51.     Mat3x3                Matrix;                //3x3 rotation matrix
  52. } Tag;
  53. typedef Tag*                TagFrame;
  54. /**END OLD STRUCTURES**/
  55.  
  56. #endif