Rtt's manager class.
More...
#include <RttManager.h>
|
| enum | RttType {
RTT_REFLECTION = 0
, RTT_REFRACTION = 1
, RTT_DEPTH = 2
, RTT_DEPTH_REFLECTION = 3
,
RTT_DEPTH_AIP = 4
, RTT_GPU_NORMAL_MAP = 5
} |
| | Rtt enumeration. More...
|
| |
| enum | BitsPerChannel { BPC_8 = 8
, BPC_16 = 16
, BPC_32 = 32
} |
| | Bits per channel. More...
|
| |
| enum | NumberOfChannels { NOC_1 = 1
, NOC_2 = 2
, NOC_3 = 3
, NOC_4 = 4
} |
| | Number of channels. More...
|
| |
|
| void | _initializeRtt (const RttType &Rtt, const Ogre::Vector3 &RttPlaneNormal, const Ogre::ColourValue &BackgroundColour, const bool &RenderSky, Ogre::RenderTargetListener *RTListener, const Ogre::String &MaterialScheme="", const bool &ShadowsEnabled=true) |
| |
| const bool | _isRenderQueueInList (const std::vector< Ogre::RenderQueueGroupID > &l, const Ogre::RenderQueueGroupID &rq) |
| |
Rtt's manager class.
Definition at line 45 of file RttManager.h.
◆ BitsPerChannel
Bits per channel.
| Enumerator |
|---|
| BPC_8 | |
| BPC_16 | |
| BPC_32 | |
Definition at line 62 of file RttManager.h.
◆ NumberOfChannels
Number of channels.
| Enumerator |
|---|
| NOC_1 | |
| NOC_2 | |
| NOC_3 | |
| NOC_4 | |
Definition at line 71 of file RttManager.h.
◆ RttType
Rtt enumeration.
| Enumerator |
|---|
| RTT_REFLECTION | |
| RTT_REFRACTION | |
| RTT_DEPTH | |
| RTT_DEPTH_REFLECTION | |
| RTT_DEPTH_AIP | |
| RTT_GPU_NORMAL_MAP | |
Definition at line 50 of file RttManager.h.
◆ RttManager()
| Hydrax::RttManager::RttManager |
( |
Hydrax * |
h | ) |
|
◆ ~RttManager()
| Hydrax::RttManager::~RttManager |
( |
| ) |
|
◆ _initializeRtt()
| void Hydrax::RttManager::_initializeRtt |
( |
const RttType & |
Rtt, |
|
|
const Ogre::Vector3 & |
RttPlaneNormal, |
|
|
const Ogre::ColourValue & |
BackgroundColour, |
|
|
const bool & |
RenderSky, |
|
|
Ogre::RenderTargetListener * |
RTListener, |
|
|
const Ogre::String & |
MaterialScheme = "", |
|
|
const bool & |
ShadowsEnabled = true |
|
) |
| |
|
private |
◆ _isRenderQueueInList()
| const bool Hydrax::RttManager::_isRenderQueueInList |
( |
const std::vector< Ogre::RenderQueueGroupID > & |
l, |
|
|
const Ogre::RenderQueueGroupID & |
rq |
|
) |
| |
|
inlineprivate |
◆ addRttListener()
| void Hydrax::RttManager::addRttListener |
( |
RttListener * |
l | ) |
|
|
inline |
◆ getBitsPerChannel()
◆ getDisableReflectionCustomNearClipPlaneRenderQueues()
| const std::vector< Ogre::RenderQueueGroupID > & Hydrax::RttManager::getDisableReflectionCustomNearClipPlaneRenderQueues |
( |
| ) |
|
|
inline |
◆ getNumberOfChannels()
◆ getPixelFormat()
| const Ogre::PixelFormat Hydrax::RttManager::getPixelFormat |
( |
const RttType & |
Rtt | ) |
const |
◆ getPlane()
| Ogre::MovablePlane * Hydrax::RttManager::getPlane |
( |
RttType |
Rtt | ) |
|
|
inline |
◆ getPlanesSceneNode()
| Ogre::SceneNode * Hydrax::RttManager::getPlanesSceneNode |
( |
| ) |
|
|
inline |
◆ getReflectionDisplacementError()
| const Ogre::Real & Hydrax::RttManager::getReflectionDisplacementError |
( |
| ) |
const |
|
inline |
◆ getRttName()
| const Ogre::String & Hydrax::RttManager::getRttName |
( |
RttType |
Rtt | ) |
const |
|
inline |
◆ getRttOptions()
◆ getTexture()
| Ogre::TexturePtr Hydrax::RttManager::getTexture |
( |
RttType |
Rtt | ) |
|
|
inline |
◆ getTextureSize()
| const Size & Hydrax::RttManager::getTextureSize |
( |
const RttType & |
Rtt | ) |
const |
|
inline |
◆ initialize()
| void Hydrax::RttManager::initialize |
( |
const RttType & |
Rtt | ) |
|
◆ remove()
| void Hydrax::RttManager::remove |
( |
const RttType & |
Rtt | ) |
|
◆ removeAll()
| void Hydrax::RttManager::removeAll |
( |
| ) |
|
◆ setBitsPerChannel()
◆ setDisableReflectionCustomNearCliplPlaneRenderQueues()
| void Hydrax::RttManager::setDisableReflectionCustomNearCliplPlaneRenderQueues |
( |
const std::vector< Ogre::RenderQueueGroupID > & |
DisableReflectionCustomNearClipPlaneRenderQueues | ) |
|
|
inline |
◆ setNumberOfChannels()
◆ setReflectionDisplacementError()
| void Hydrax::RttManager::setReflectionDisplacementError |
( |
const Ogre::Real & |
ReflectionDisplacementError | ) |
|
|
inline |
Range [0.05, ~2], increase if you experience reflection issues when the camera is near to the water.
Definition at line 216 of file RttManager.h.
◆ setTextureSize()
| void Hydrax::RttManager::setTextureSize |
( |
const RttType & |
Rtt, |
|
|
const Size & |
S |
|
) |
| |
Set Rtt texture size.
- Parameters
-
| S | New texture size (0,0 -> get main viewport size) |
Definition at line 223 of file RttManager.cpp.
◆ setTexturesSize()
| void Hydrax::RttManager::setTexturesSize |
( |
const Size & |
S | ) |
|
Set Rtt textures size.
- Parameters
-
| S | New texture size (0,0 -> get main viewport size) |
Definition at line 245 of file RttManager.cpp.
◆ mDepthListener
◆ mDepthReflectionListener
◆ mDisableReflectionCustomNearClipPlaneRenderQueues
| std::vector<Ogre::RenderQueueGroupID> Hydrax::RttManager::mDisableReflectionCustomNearClipPlaneRenderQueues |
|
private |
Render queues to exclude of the reflection custom near clip plane.
Definition at line 373 of file RttManager.h.
◆ mGPUNormalMapListener
◆ mHydrax
| Hydrax* Hydrax::RttManager::mHydrax |
|
private |
◆ mPlanes
| Ogre::MovablePlane* Hydrax::RttManager::mPlanes[6] |
|
private |
◆ mPlanesSceneNode
| Ogre::SceneNode* Hydrax::RttManager::mPlanesSceneNode |
|
private |
SceneNode to attach our planes.
Definition at line 356 of file RttManager.h.
◆ mReflectionDisplacementError
| Ogre::Real Hydrax::RttManager::mReflectionDisplacementError |
|
private |
Reflection displacement error, range [0.01, ~2].
Definition at line 378 of file RttManager.h.
◆ mReflectionListener
◆ mRefractionListener
◆ mRttListeners
| std::vector<RttListener*> Hydrax::RttManager::mRttListeners |
|
private |
◆ mRttOptions
◆ mTextures
| Ogre::TexturePtr Hydrax::RttManager::mTextures[6] |
|
private |
The documentation for this class was generated from the following files: