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
IGfxWater.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 2017-2020 Petr Ohlidal
6
7 For more information, see http://www.rigsofrods.org/
8
9 Rigs of Rods is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License version 3, as
11 published by the Free Software Foundation.
12
13 Rigs of Rods 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.
17
18 You should have received a copy of the GNU General Public License
19 along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#pragma once
23
24#include "ForwardDeclarations.h"
25#include <Ogre.h>
26
27namespace RoR {
28
31
33{
34public:
36 {
37 }
38
39 virtual ~IGfxWater()
40 {
41 }
42
43 virtual void SetWaterBottomHeight(float) {};
44 virtual void SetWaterVisible(bool value) = 0;
45 virtual void WaterSetSunPosition(Ogre::Vector3) {}
46 virtual void FrameStepWater(float dt) = 0;
47 virtual void SetReflectionPlaneHeight(float) {}
48 virtual void UpdateReflectionPlane(float) {}
49 virtual void WaterPrepareShutdown() {}
50 virtual void UpdateWater() = 0;
51
52 // Only used by class Water for SurveyMap texture creation
53 virtual void SetForcedCameraTransform(Ogre::Radian /*fovy*/, Ogre::Vector3 /*pos*/, Ogre::Quaternion /*rot*/) {};
54 virtual void ClearForcedCameraTransform() {};
55};
56
58
59} // namespace RoR
Global forward declarations.
virtual void WaterPrepareShutdown()
Definition IGfxWater.h:49
virtual void UpdateWater()=0
virtual void SetForcedCameraTransform(Ogre::Radian, Ogre::Vector3, Ogre::Quaternion)
Definition IGfxWater.h:53
virtual void SetReflectionPlaneHeight(float)
Definition IGfxWater.h:47
virtual void SetWaterVisible(bool value)=0
virtual void ClearForcedCameraTransform()
Definition IGfxWater.h:54
virtual void WaterSetSunPosition(Ogre::Vector3)
Definition IGfxWater.h:45
virtual ~IGfxWater()
Definition IGfxWater.h:39
virtual void SetWaterBottomHeight(float)
Definition IGfxWater.h:43
virtual void UpdateReflectionPlane(float)
Definition IGfxWater.h:48
virtual void FrameStepWater(float dt)=0