Implemented proper skybox loading.
[openstranded.git] / src / eal / horde3d / engine.hh
blobb5317d615efb2fc7a731b7655ff9e14e812e89cb
1 /*
2 * Horde3D 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_HORDE3DENGINE_HH
23 #define STRANDED_HORDE3DENGINE_HH
25 #include "eal/engine.hh"
26 #include "eal/horde3d/converter.hh"
28 namespace eal
30 /**
31 * Horde3D implementation of the rendering system
33 class Horde3DEngine : public Engine
35 public:
36 /**
37 * Constructor. Must not be called more than once.
39 Horde3DEngine();
40 virtual ~Horde3DEngine();
42 virtual bool
43 init(GlobalSettings *settings = 0);
45 virtual SceneNode*
46 addSceneNode();
47 virtual Environment*
48 addEnvironment();
50 /**
51 * Loads all not-yet-loaded graphics resources.
53 void
54 loadResources();
56 /**
57 * Returns a pointer to the media file converter
59 Horde3DConverter*
60 getConverter()
62 return converter;
65 virtual bool
66 update();
67 private:
68 int cameranode;
69 std::string searchpath;
71 Horde3DConverter *converter;
75 #endif