RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Attributes | Static Private Attributes
RoR::GfxEnvmap Class Reference

A dynamic environment probe; Creates a cubemap with realtime reflections around specified point. More...

#include <EnvironmentMap.h>

Public Member Functions

 GfxEnvmap ()
 
 ~GfxEnvmap ()
 
void SetupEnvMap ()
 
void UpdateEnvMap (Ogre::Vector3 center, GfxActor *gfx_actor, bool full=false)
 

Private Attributes

Ogre::Camera * m_cameras [NUM_FACES]
 
Ogre::RenderTarget * m_render_targets [NUM_FACES]
 
Ogre::TexturePtr m_rtt_texture
 
int m_update_round
 

Static Private Attributes

static const unsigned int NUM_FACES = 6
 

Detailed Description

A dynamic environment probe; Creates a cubemap with realtime reflections around specified point.

Definition at line 33 of file EnvironmentMap.h.

Constructor & Destructor Documentation

◆ GfxEnvmap()

RoR::GfxEnvmap::GfxEnvmap ( )

Definition at line 36 of file EnvironmentMap.cpp.

◆ ~GfxEnvmap()

RoR::GfxEnvmap::~GfxEnvmap ( )

Definition at line 194 of file EnvironmentMap.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ SetupEnvMap()

void RoR::GfxEnvmap::SetupEnvMap ( )

Definition at line 43 of file EnvironmentMap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateEnvMap()

void RoR::GfxEnvmap::UpdateEnvMap ( Ogre::Vector3  center,
GfxActor gfx_actor,
bool  full = false 
)

Definition at line 206 of file EnvironmentMap.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ m_cameras

Ogre::Camera* RoR::GfxEnvmap::m_cameras[NUM_FACES]
private

Definition at line 47 of file EnvironmentMap.h.

◆ m_render_targets

Ogre::RenderTarget* RoR::GfxEnvmap::m_render_targets[NUM_FACES]
private

Definition at line 48 of file EnvironmentMap.h.

◆ m_rtt_texture

Ogre::TexturePtr RoR::GfxEnvmap::m_rtt_texture
private

Definition at line 49 of file EnvironmentMap.h.

◆ m_update_round

int RoR::GfxEnvmap::m_update_round
private

Definition at line 50 of file EnvironmentMap.h.

◆ NUM_FACES

const unsigned int RoR::GfxEnvmap::NUM_FACES = 6
staticprivate

Definition at line 45 of file EnvironmentMap.h.


The documentation for this class was generated from the following files: