Added the possibility to use multiple graphics engines in cmake (only Engine done...
[openstranded.git] / src / eal / irrlicht / irrlichtengine.hh
blob7161215574cd2446607904a91fe3177de64c534b
1 /*
2 * Irrlicht implementation of the rendering system
4 * Copyright (C) 2009 Mathias Gottschlag
6 * This file is part of OpenStranded
8 * OpenStranded is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * OpenStranded is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with OpenStranded. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef STRANDED_IRRLICHTENGINE_HH
23 #define STRANDED_IRRLICHTENGINE_HH
25 #include "eal/engine.hh"
27 namespace irr
29 class IrrlichtDevice;
30 namespace scene
32 class ISceneManager;
33 class ISceneNode;
37 namespace eal
39 /**
40 * Irrlicht implementation of the rendering system
42 class IrrlichtEngine : public Engine
44 public:
45 /**
46 * Constructor. Must not be called more than once.
48 IrrlichtEngine();
49 virtual ~IrrlichtEngine();
51 virtual bool
52 init();
54 /**
55 * Returns a pointer to the Irrlicht scene manager
57 irr::scene::ISceneManager*
58 getSceneManager();
60 /**
61 * Renders one frame and refills sound buffers if needed
63 virtual bool
64 update();
65 private:
66 irr::IrrlichtDevice *irrlicht;
68 int lastfps;
72 #endif