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
EnvironmentMap.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
6 For more information, see http://www.rigsofrods.org/
7
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 "ForwardDeclarations.h"
24
25#include <Ogre.h>
26
27namespace RoR {
28
31
34{
35public:
36
37 GfxEnvmap();
38 ~GfxEnvmap();
39
40 void SetupEnvMap();
41 void UpdateEnvMap(Ogre::Vector3 center, GfxActor* gfx_actor, bool full = false);
42
43private:
44
45 static const unsigned int NUM_FACES = 6;
46
47 Ogre::Camera* m_cameras[NUM_FACES];
48 Ogre::RenderTarget* m_render_targets[NUM_FACES];
49 Ogre::TexturePtr m_rtt_texture;
51};
52
54
55} // namespace RoR
Global forward declarations.
A dynamic environment probe; Creates a cubemap with realtime reflections around specified point.
Ogre::TexturePtr m_rtt_texture
static const unsigned int NUM_FACES
Ogre::RenderTarget * m_render_targets[NUM_FACES]
Ogre::Camera * m_cameras[NUM_FACES]
void UpdateEnvMap(Ogre::Vector3 center, GfxActor *gfx_actor, bool full=false)