Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ModelFileMAG.h
Go to the documentation of this file.
1 /* Project Magic 2.0
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Magic.exe
6  FILE: ModelFileMAG.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  File loader for MAG format models
13 */
14 
15 #ifndef ModelFileMAG_h
16 #define ModelFileMAG_h
17 
18 #include "Solid.h"
19 
20 // +--------------------------------------------------------------------+
21 
22 class ModelFileMAG : public ModelFile
23 {
24 public:
25  ModelFileMAG(const char* fname);
26  virtual ~ModelFileMAG();
27 
28  virtual bool Load(Model* m, double scale=1.0);
29  virtual bool Save(Model* m);
30 
31 protected:
32  virtual bool LoadMag5(FILE* fp, Model* m, double scale);
33  virtual bool LoadMag6(FILE* fp, Model* m, double scale);
34 };
35 
36 // +--------------------------------------------------------------------+
37 
38 #endif ModelFileMAG_h
39