* Add "less" target to view make output through less.
[matthijs/ABM2.git] / ABM2 / Amaltheia / modelLoader.cpp
diff --git a/ABM2/Amaltheia/modelLoader.cpp b/ABM2/Amaltheia/modelLoader.cpp
new file mode 100644 (file)
index 0000000..5cd9b60
--- /dev/null
@@ -0,0 +1,47 @@
+/***************************************************************************\r
+ *   Copyright (C) 2005 by Dimitris Saougos & Filippos Papadopoulos   *\r
+ *   <psybases@gmail.com>                                                             *\r
+ *                                                                                                       *\r
+ *   This program is free software; you can redistribute it and/or modify  *\r
+ *   it under the terms of the GNU Library General Public License as       *\r
+ *   published by the Free Software Foundation; either version 2 of the    *\r
+ *   License, or (at your option) any later version.                                    *\r
+ *                                                                                                           *\r
+ *   This program is distributed in the hope that it will be useful,       *\r
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *\r
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *\r
+ *   GNU General Public License for more details.                          *\r
+ *                                                                         *\r
+ *   You should have received a copy of the GNU Library General Public     *\r
+ *   License along with this program; if not, write to the                 *\r
+ *   Free Software Foundation, Inc.,                                       *\r
+ *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *\r
+ ***************************************************************************/\r
+\r
+#include "modelLoader.h"\r
+\r
+modelLoader::modelLoader(Graphics *g)\r
+{\r
+       gr=g;\r
+       m[0]=new model("tris.md2", "masked.bmp",g);\r
+       return ;\r
+}\r
+\r
+modelLoader::~modelLoader(void)\r
+{\r
+       int i;\r
+       for (i=0;i<Different_types;i++)\r
+               delete m[i];\r
+\r
+       return ;\r
+}\r
+\r
+c_model * modelLoader::getModel(int type)\r
+{\r
+       c_model * ctmp;\r
+\r
+       ctmp=new c_model(m[type]);\r
+       ctmp->setFrameSequence("stand");\r
+\r
+       return ctmp;\r
+}\r