Rigs of Rods 2023.09
Soft-body Physics Simulation
Loading...
Searching...
No Matches
SkyXManager.h
Go to the documentation of this file.
1/*
2This source file is part of Rigs of Rods
3Copyright 2005-2012 Pierre-Michel Ricordel
4Copyright 2007-2012 Thomas Fischer
5
6For more information, see http://www.rigsofrods.com/
7
8Rigs of Rods is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License version 3, as
10published by the Free Software Foundation.
11
12Rigs of Rods is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#include "Application.h"
24
25#include "gfx/skyx/SkyX.h"
26
27namespace RoR {
28
31
33{
34public:
35 SkyXManager(Ogre::String configFile);
37
38 Ogre::Vector3 getMainLightDirection();
39
40 Ogre::Light* getMainLight();
41
42 bool update( float dt );
43
44 bool InitLight();
45
46 size_t getMemoryUsage();
47
48 void freeResources();
49
50 bool UpdateSkyLight();
51
52 SkyX::SkyX* GetSkyX() { return mSkyX; }
53
54protected:
55 Ogre::Light *mLight0 = nullptr;
56 Ogre::Light *mLight1 = nullptr;
57
58 SkyX::SkyX* mSkyX = nullptr;
60
64
66
67 int mLastHour = 0;
68};
69
71
72} // namespace RoR
Central state/object manager and communications hub.
SkyX::ColorGradient mAmbientGradient
Definition SkyXManager.h:63
bool update(float dt)
Ogre::Light * mLight1
Definition SkyXManager.h:56
SkyX::SkyX * GetSkyX()
Definition SkyXManager.h:52
SkyX::CfgFileManager * mCfgFileManager
Definition SkyXManager.h:65
SkyX::ColorGradient mWaterGradient
Definition SkyXManager.h:61
Ogre::Light * getMainLight()
SkyX::ColorGradient mSunGradient
Definition SkyXManager.h:62
size_t getMemoryUsage()
SkyX::BasicController * mBasicController
Definition SkyXManager.h:59
Ogre::Light * mLight0
Definition SkyXManager.h:55
Ogre::Vector3 getMainLightDirection()
SkyX::SkyX * mSkyX
Definition SkyXManager.h:58
Basic controller class
Config file manager.
SkyX class Create simple and beautiful skies!
Definition SkyX.h:62