RigsofRods
Soft-body Physics Simulation
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 
27 namespace RoR {
28 
31 
33 class GfxEnvmap
34 {
35 public:
36 
37  GfxEnvmap();
38  ~GfxEnvmap();
39 
40  void SetupEnvMap();
41  void UpdateEnvMap(Ogre::Vector3 center, GfxActor* gfx_actor, bool full = false);
42 
43 private:
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
ForwardDeclarations.h
Global forward declarations.
RoR::GfxEnvmap::~GfxEnvmap
~GfxEnvmap()
Definition: EnvironmentMap.cpp:194
RoR::GfxEnvmap::GfxEnvmap
GfxEnvmap()
Definition: EnvironmentMap.cpp:36
RoR::GfxEnvmap::SetupEnvMap
void SetupEnvMap()
Definition: EnvironmentMap.cpp:43
RoR::GfxEnvmap::m_rtt_texture
Ogre::TexturePtr m_rtt_texture
Definition: EnvironmentMap.h:49
RoR::GfxEnvmap::NUM_FACES
static const unsigned int NUM_FACES
Definition: EnvironmentMap.h:45
RoR::GfxEnvmap::UpdateEnvMap
void UpdateEnvMap(Ogre::Vector3 center, GfxActor *gfx_actor, bool full=false)
Definition: EnvironmentMap.cpp:206
RoR::GfxEnvmap
A dynamic environment probe; Creates a cubemap with realtime reflections around specified point.
Definition: EnvironmentMap.h:33
RoR::GfxActor
Definition: GfxActor.h:52
RoR::GfxEnvmap::m_cameras
Ogre::Camera * m_cameras[NUM_FACES]
Definition: EnvironmentMap.h:47
RoR::GfxEnvmap::m_update_round
int m_update_round
Definition: EnvironmentMap.h:50
RoR
Definition: AppContext.h:36
RoR::GfxEnvmap::m_render_targets
Ogre::RenderTarget * m_render_targets[NUM_FACES]
Definition: EnvironmentMap.h:48