OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::RadialDensityMask Class Reference

#include <OgreRadialDensityMask.h>

+ Inheritance diagram for Ogre::RadialDensityMask:

Public Types

enum  RdmQuality { RdmLow , RdmMedium , RdmHigh }
 

Public Member Functions

 RadialDensityMask (SceneManager *sceneManager, const float radius[3], HlmsManager *hlmsManager)
 
 ~RadialDensityMask ()
 
const float * getRadius () const
 
Rectangle2DgetRectangle () const
 
void setEyesCenter (const Vector2 &leftEyeCenter, const Vector2 &rightEyeCenter)
 Sets the center of the eye. More...
 
void setNewRadius (const float radius[3])
 Changes existing set of radiuses. More...
 
void setQuality (RdmQuality quality)
 Sets the quality of the reconstruction filter for half resolution rendering. More...
 
void update (Viewport *viewports)
 

Member Enumeration Documentation

◆ RdmQuality

Enumerator
RdmLow 

Cheap, pixelated and grainy.

RdmMedium 

Slower than low but much better results.

Can result in sharp text but still aliasing, shimmering/grain

RdmHigh 

Slowest, but best results.

Can result in blurry text but smoother graphics (i.e. less aliasing and shimmering/grain)

Constructor & Destructor Documentation

◆ RadialDensityMask()

Ogre::RadialDensityMask::RadialDensityMask ( SceneManager sceneManager,
const float  radius[3],
HlmsManager hlmsManager 
)

◆ ~RadialDensityMask()

Ogre::RadialDensityMask::~RadialDensityMask ( )

Member Function Documentation

◆ getRadius()

const float* Ogre::RadialDensityMask::getRadius ( ) const
inline

◆ getRectangle()

Rectangle2D* Ogre::RadialDensityMask::getRectangle ( ) const
inline

◆ setEyesCenter()

void Ogre::RadialDensityMask::setEyesCenter ( const Vector2 leftEyeCenter,
const Vector2 rightEyeCenter 
)

Sets the center of the eye.

Each eye is relative to its own viewport. e.g. the default for both eyes is Vector2( 0, 0 ) and not Vector2( -0.5, 0 ) for the left eye and Vector2( 0.5, 0 ) for the right eye

Parameters
leftEyeCenterIn clip space, i.e. in range [-1; 1]
rightEyeCenterIn clip space, i.e. in range [-1; 1]

◆ setNewRadius()

void Ogre::RadialDensityMask::setNewRadius ( const float  radius[3])

Changes existing set of radiuses.

Parameters
radiusFor best performance, do not change the value of mRadius[0]

◆ setQuality()

void Ogre::RadialDensityMask::setQuality ( RdmQuality  quality)

Sets the quality of the reconstruction filter for half resolution rendering.

Quarter and Sixteenth resolution rendering is always reconstructed using low quality.

Parameters
quality

◆ update()

void Ogre::RadialDensityMask::update ( Viewport viewports)

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