Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
HydraxWater.h
Go to the documentation of this file.
1/*
2 This source file is part of Rigs of Rods
3 Copyright 2005-2012 Pierre-Michel Ricordel
4 Copyright 2007-2012 Thomas Fischer
5 Copyright 2013-2016 Petr Ohlidal
6
7 For more information, see http://www.rigsofrods.org/
8 Rigs of Rods is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 3, as
10 published by the Free Software Foundation.
11
12 Rigs of Rods is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#include "Hydrax.h"
24#include "IGfxWater.h"
25#include "ProjectedGrid.h"
26
27#include <Ogre.h>
28
29namespace RoR {
30
33
34class HydraxWater : public IGfxWater
35{
36public:
37
38 HydraxWater(float waterHeight, Ogre::String configFile = "HydraxDefault.hdx");
40
41 void SetWaterVisible(bool value) override;
42 void WaterSetSunPosition(Ogre::Vector3) override;
43 void FrameStepWater(float dt) override;
44 void UpdateWater() override;
45
47
48protected:
49
50 void InitHydrax();
56 Ogre::String CurrentConfigFile;
57};
58
60
61} // namespace RoR
Main Hydrax class.
Definition Hydrax.h:57
Hydrax projected grid module.
Perlin noise module class.
Definition Perlin.h:74
Hydrax::Hydrax * mHydrax
Definition HydraxWater.h:51
Ogre::String CurrentConfigFile
Definition HydraxWater.h:56
void WaterSetSunPosition(Ogre::Vector3) override
void FrameStepWater(float dt) override
void UpdateWater() override
Hydrax::Module::ProjectedGrid * mModule
Definition HydraxWater.h:55
Hydrax::Noise::Perlin * waternoise
Definition HydraxWater.h:54
Hydrax::Hydrax * GetHydrax()
Definition HydraxWater.h:46
void SetWaterVisible(bool value) override