Project

General

Profile

SO3Engine

#include <SO3SsaoHandler.h>

Inheritance diagram for SO3::SSsaoHandler:

Classes

struct  SsaoTechniqueParameter
 

Public Types

enum  SsaoTechnique {
  SO3_SSAO_TECHNIQUE_NONE = -1 , SO3_SSAO_TECHNIQUE_CRYTEK = 0 , SO3_SSAO_TECHNIQUE_HEMISPHERIC = 1 , SO3_SSAO_TECHNIQUE_CREASE_SHADING = 2 ,
  SO3_SSAO_TECHNIQUE_MAX = 3
}
 
enum  SsaoFilter { SO3_SSAO_FILTER_NONE , SO3_SSAO_FILTER_BOX , SO3_SSAO_FILTER_BOX_SMART , SO3_SSAO_FILTER_MAX }
 
enum  SsaoDebugMode {
  SO3_SSAO_DEBUG_MODE_NONE , SO3_SSAO_DEBUG_MODE_DEPTH , SO3_SSAO_DEBUG_MODE_NORMAL , SO3_SSAO_DEBUG_MODE_POSITION ,
  SO3_SSAO_DEBUG_MODE_SSAO_ONLY , SO3_SSAO_DEBUG_MODE_MAX
}
 
typedef std::pair< float, float > SsaoTechniqueParameterRange
 
typedef std::map< std::string, SsaoTechniqueParameterSsaoTechniqueParameters
 

Public Member Functions

 SSsaoHandler (SViewPort *targetViewportInstance)
 
 ~SSsaoHandler ()
 
bool GetEnable ()
 
void SetEnable (bool enable)
 
SsaoTechnique GetTechnique ()
 
void SetTechnique (SsaoTechnique newTechnique)
 
SsaoFilter GetFilter ()
 
void SetFilter (const SsaoFilter &newFilter)
 
SsaoDebugMode GetDebugMode ()
 
void SetDebugMode (const SsaoDebugMode &newDebugMode)
 
float GetTechniqueParameterValue (const SsaoTechnique &technique, const std::string &parameterName) const
 
void SetTechniqueParameterValue (const SsaoTechnique &technique, const std::string &parameterName, const float &parameterValue)
 
SsaoTechniqueParameters GetTechniqueParameters (const SsaoTechnique &technique) const
 
void SetTechniqueParameters (const SsaoTechnique &technique, const SsaoTechniqueParameters &parameters)
 
virtual Ogre::Technique * handleSchemeNotFound (unsigned short schemeIndex, const Ogre::String &schemeName, Ogre::Material *originalMaterial, unsigned short lodIndex, const Ogre::Renderable *rend)
 

Static Public Member Functions

static void Reset ()
 

Detailed Description

Handler to manage SSAO rendering with no artefacts on transparent objects.

Definition at line 39 of file SO3SsaoHandler.h.

Member Typedef Documentation

◆ SsaoTechniqueParameterRange

typedef std::pair<float, float> SO3::SSsaoHandler::SsaoTechniqueParameterRange

Definition at line 66 of file SO3SsaoHandler.h.

◆ SsaoTechniqueParameters

Definition at line 78 of file SO3SsaoHandler.h.

Member Enumeration Documentation

◆ SsaoDebugMode

Enumerator
SO3_SSAO_DEBUG_MODE_NONE 
SO3_SSAO_DEBUG_MODE_DEPTH 
SO3_SSAO_DEBUG_MODE_NORMAL 
SO3_SSAO_DEBUG_MODE_POSITION 
SO3_SSAO_DEBUG_MODE_SSAO_ONLY 
SO3_SSAO_DEBUG_MODE_MAX 

Definition at line 57 of file SO3SsaoHandler.h.

◆ SsaoFilter

Enumerator
SO3_SSAO_FILTER_NONE 
SO3_SSAO_FILTER_BOX 
SO3_SSAO_FILTER_BOX_SMART 
SO3_SSAO_FILTER_MAX 

Definition at line 50 of file SO3SsaoHandler.h.

◆ SsaoTechnique

Enumerator
SO3_SSAO_TECHNIQUE_NONE 
SO3_SSAO_TECHNIQUE_CRYTEK 
SO3_SSAO_TECHNIQUE_HEMISPHERIC 
SO3_SSAO_TECHNIQUE_CREASE_SHADING 
SO3_SSAO_TECHNIQUE_MAX 

Definition at line 42 of file SO3SsaoHandler.h.

Constructor & Destructor Documentation

◆ SSsaoHandler()

SSsaoHandler::SSsaoHandler ( SViewPort targetViewportInstance)

Constructor.

Definition at line 29 of file SO3SsaoHandler.cpp.

◆ ~SSsaoHandler()

SSsaoHandler::~SSsaoHandler ( )

Destructor.

Definition at line 104 of file SO3SsaoHandler.cpp.

Member Function Documentation

◆ GetDebugMode()

SSsaoHandler::SsaoDebugMode SSsaoHandler::GetDebugMode ( )

Definition at line 418 of file SO3SsaoHandler.cpp.

◆ GetEnable()

bool SSsaoHandler::GetEnable ( )

Definition at line 155 of file SO3SsaoHandler.cpp.

◆ GetFilter()

SSsaoHandler::SsaoFilter SSsaoHandler::GetFilter ( )

Definition at line 347 of file SO3SsaoHandler.cpp.

◆ GetTechnique()

SSsaoHandler::SsaoTechnique SSsaoHandler::GetTechnique ( )

Definition at line 242 of file SO3SsaoHandler.cpp.

◆ GetTechniqueParameters()

SSsaoHandler::SsaoTechniqueParameters SSsaoHandler::GetTechniqueParameters ( const SsaoTechnique technique) const

Definition at line 2410 of file SO3SsaoHandler.cpp.

◆ GetTechniqueParameterValue()

float SSsaoHandler::GetTechniqueParameterValue ( const SsaoTechnique technique,
const std::string &  parameterName 
) const

Definition at line 2324 of file SO3SsaoHandler.cpp.

◆ handleSchemeNotFound()

Ogre::Technique * SSsaoHandler::handleSchemeNotFound ( unsigned short  schemeIndex,
const Ogre::String &  schemeName,
Ogre::Material *  originalMaterial,
unsigned short  lodIndex,
const Ogre::Renderable *  rend 
)
virtual

This scheme handler is used to generate the depth texture.

Definition at line 579 of file SO3SsaoHandler.cpp.

◆ Reset()

void SSsaoHandler::Reset ( )
static

Definition at line 19 of file SO3SsaoHandler.cpp.

◆ SetDebugMode()

void SSsaoHandler::SetDebugMode ( const SsaoDebugMode newDebugMode)

Definition at line 423 of file SO3SsaoHandler.cpp.

◆ SetEnable()

void SSsaoHandler::SetEnable ( bool  enable)

Definition at line 160 of file SO3SsaoHandler.cpp.

◆ SetFilter()

void SSsaoHandler::SetFilter ( const SsaoFilter newFilter)

Definition at line 352 of file SO3SsaoHandler.cpp.

◆ SetTechnique()

void SSsaoHandler::SetTechnique ( SsaoTechnique  newTechnique)

Definition at line 247 of file SO3SsaoHandler.cpp.

◆ SetTechniqueParameters()

void SSsaoHandler::SetTechniqueParameters ( const SsaoTechnique technique,
const SsaoTechniqueParameters parameters 
)

Definition at line 2423 of file SO3SsaoHandler.cpp.

◆ SetTechniqueParameterValue()

void SSsaoHandler::SetTechniqueParameterValue ( const SsaoTechnique technique,
const std::string &  parameterName,
const float &  parameterValue 
)

Definition at line 2347 of file SO3SsaoHandler.cpp.


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