* Include windows.h by default on windows, most stuff probably needs it.
[matthijs/ABM2.git] / ABM2 / Amaltheia / modelLoader.cpp
1 /***************************************************************************\r
2  *   Copyright (C) 2005 by Dimitris Saougos & Filippos Papadopoulos   *\r
3  *   <psybases@gmail.com>                                                             *\r
4  *                                                                                                       *\r
5  *   This program is free software; you can redistribute it and/or modify  *\r
6  *   it under the terms of the GNU Library General Public License as       *\r
7  *   published by the Free Software Foundation; either version 2 of the    *\r
8  *   License, or (at your option) any later version.                                    *\r
9  *                                                                                                           *\r
10  *   This program is distributed in the hope that it will be useful,       *\r
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *\r
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *\r
13  *   GNU General Public License for more details.                          *\r
14  *                                                                         *\r
15  *   You should have received a copy of the GNU Library General Public     *\r
16  *   License along with this program; if not, write to the                 *\r
17  *   Free Software Foundation, Inc.,                                       *\r
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *\r
19  ***************************************************************************/\r
20 \r
21 #include "modelLoader.h"\r
22 \r
23 modelLoader::modelLoader(Graphics *g)\r
24 {\r
25         gr=g;\r
26         m[0]=new model("tris.md2", "masked.bmp",g);\r
27         return ;\r
28 }\r
29 \r
30 modelLoader::~modelLoader(void)\r
31 {\r
32         int i;\r
33         for (i=0;i<Different_types;i++)\r
34                 delete m[i];\r
35 \r
36         return ;\r
37 }\r
38 \r
39 c_model * modelLoader::getModel(int type)\r
40 {\r
41         c_model * ctmp;\r
42 \r
43         ctmp=new c_model(m[type]);\r
44         ctmp->setFrameSequence("stand");\r
45 \r
46         return ctmp;\r
47 }\r