summaryrefslogtreecommitdiffhomepage
path: root/Magic2/ModelFileMAG.h
diff options
context:
space:
mode:
Diffstat (limited to 'Magic2/ModelFileMAG.h')
-rw-r--r--Magic2/ModelFileMAG.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/Magic2/ModelFileMAG.h b/Magic2/ModelFileMAG.h
new file mode 100644
index 0000000..cf3d6de
--- /dev/null
+++ b/Magic2/ModelFileMAG.h
@@ -0,0 +1,39 @@
+/* Project Magic 2.0
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
+
+ SUBSYSTEM: Magic.exe
+ FILE: ModelFileMAG.h
+ AUTHOR: John DiCamillo
+
+
+ OVERVIEW
+ ========
+ File loader for MAG format models
+*/
+
+#ifndef ModelFileMAG_h
+#define ModelFileMAG_h
+
+#include "Solid.h"
+
+// +--------------------------------------------------------------------+
+
+class ModelFileMAG : public ModelFile
+{
+public:
+ ModelFileMAG(const char* fname);
+ virtual ~ModelFileMAG();
+
+ virtual bool Load(Model* m, double scale=1.0);
+ virtual bool Save(Model* m);
+
+protected:
+ virtual bool LoadMag5(FILE* fp, Model* m, double scale);
+ virtual bool LoadMag6(FILE* fp, Model* m, double scale);
+};
+
+// +--------------------------------------------------------------------+
+
+#endif ModelFileMAG_h
+