#include <GPUManager.h>
|
| GPUManager (SkyX *s) |
| Constructor. More...
|
|
| ~GPUManager () |
| Destructor. More...
|
|
void | addGroundPass (Ogre::Pass *GroundPass, const Ogre::Real &AtmosphereRadius, const Ogre::SceneBlendType &SBT=Ogre::SBT_ADD) |
| Add ground pass (Use for atmospheric scattering effect on the terrain) More...
|
|
void | setGpuProgramParameter (const GpuProgram &GpuP, const Ogre::String &Name, const int &Value, const bool &UpdateGroundPasses=true) |
| Set gpu program int parameter. More...
|
|
void | setGpuProgramParameter (const GpuProgram &GpuP, const Ogre::String &Name, const Ogre::Real &Value, const bool &UpdateGroundPasses=true) |
| Set gpu program Ogre::Real parameter. More...
|
|
void | setGpuProgramParameter (const GpuProgram &GpuP, const Ogre::String &Name, const Ogre::Vector2 &Value, const bool &UpdateGroundPasses=true) |
| Set gpu program Ogre::Vector2 parameter. More...
|
|
void | setGpuProgramParameter (const GpuProgram &GpuP, const Ogre::String &Name, const Ogre::Vector3 &Value, const bool &UpdateGroundPasses=true) |
| Set gpu program Ogre::Vector3 parameter. More...
|
|
const Ogre::String | getSkydomeMaterialName () const |
| Get skydome material name. More...
|
|
const Ogre::String | getMoonMaterialName () const |
| Get moon material name. More...
|
|
void | _updateFP () |
| Update fragment program materials. More...
|
|
void | _notifySkydomeMaterialChanged () |
| Notify skydome material changed. More...
|
|
Definition at line 33 of file GPUManager.h.
◆ GpuProgram
Gpu program enum.
Enumerator |
---|
GPUP_VERTEX | |
GPUP_FRAGMENT | |
Definition at line 38 of file GPUManager.h.
◆ GPUManager()
SkyX::GPUManager::GPUManager |
( |
SkyX * |
s | ) |
|
◆ ~GPUManager()
SkyX::GPUManager::~GPUManager |
( |
| ) |
|
◆ _notifySkydomeMaterialChanged()
void SkyX::GPUManager::_notifySkydomeMaterialChanged |
( |
| ) |
|
|
inline |
Notify skydome material changed.
Definition at line 115 of file GPUManager.h.
◆ _setTextureHWGammaCorrection()
void SkyX::GPUManager::_setTextureHWGammaCorrection |
( |
const Ogre::String & |
n, |
|
|
const bool & |
g |
|
) |
| |
|
private |
Set texture HW gamma correction.
- Parameters
-
n | Texture name |
g | True to enable gamma correction, false to disable it |
Definition at line 348 of file GPUManager.cpp.
◆ _updateFP()
void SkyX::GPUManager::_updateFP |
( |
| ) |
|
Update fragment program materials.
Definition at line 68 of file GPUManager.cpp.
◆ addGroundPass()
void SkyX::GPUManager::addGroundPass |
( |
Ogre::Pass * |
GroundPass, |
|
|
const Ogre::Real & |
AtmosphereRadius, |
|
|
const Ogre::SceneBlendType & |
SBT = Ogre::SBT_ADD |
|
) |
| |
Add ground pass (Use for atmospheric scattering effect on the terrain)
- Parameters
-
GroundPass | Ground pass |
AtmosphereRaidus | Atmosphere radius (typically far carmera clip plane) |
SBT | Scene blend type |
TODO
Definition at line 41 of file GPUManager.cpp.
◆ getMoonMaterialName()
const Ogre::String SkyX::GPUManager::getMoonMaterialName |
( |
| ) |
const |
|
inline |
Get moon material name.
- Returns
- Moon material name
Definition at line 102 of file GPUManager.h.
◆ getSkydomeMaterialName()
const Ogre::String SkyX::GPUManager::getSkydomeMaterialName |
( |
| ) |
const |
Get skydome material name.
- Returns
- Skydome material name
Definition at line 341 of file GPUManager.cpp.
◆ setGpuProgramParameter() [1/4]
void SkyX::GPUManager::setGpuProgramParameter |
( |
const GpuProgram & |
GpuP, |
|
|
const Ogre::String & |
Name, |
|
|
const int & |
Value, |
|
|
const bool & |
UpdateGroundPasses = true |
|
) |
| |
Set gpu program int parameter.
- Parameters
-
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Definition at line 99 of file GPUManager.cpp.
◆ setGpuProgramParameter() [2/4]
void SkyX::GPUManager::setGpuProgramParameter |
( |
const GpuProgram & |
GpuP, |
|
|
const Ogre::String & |
Name, |
|
|
const Ogre::Real & |
Value, |
|
|
const bool & |
UpdateGroundPasses = true |
|
) |
| |
Set gpu program Ogre::Real parameter.
- Parameters
-
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Definition at line 159 of file GPUManager.cpp.
◆ setGpuProgramParameter() [3/4]
void SkyX::GPUManager::setGpuProgramParameter |
( |
const GpuProgram & |
GpuP, |
|
|
const Ogre::String & |
Name, |
|
|
const Ogre::Vector2 & |
Value, |
|
|
const bool & |
UpdateGroundPasses = true |
|
) |
| |
Set gpu program Ogre::Vector2 parameter.
- Parameters
-
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Definition at line 219 of file GPUManager.cpp.
◆ setGpuProgramParameter() [4/4]
void SkyX::GPUManager::setGpuProgramParameter |
( |
const GpuProgram & |
GpuP, |
|
|
const Ogre::String & |
Name, |
|
|
const Ogre::Vector3 & |
Value, |
|
|
const bool & |
UpdateGroundPasses = true |
|
) |
| |
Set gpu program Ogre::Vector3 parameter.
- Parameters
-
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Definition at line 281 of file GPUManager.cpp.
◆ mGroundPasses
std::vector<Ogre::Pass*> SkyX::GPUManager::mGroundPasses |
|
private |
◆ mSkydomeMaterial
Ogre::MaterialPtr SkyX::GPUManager::mSkydomeMaterial |
|
private |
◆ mSkyX
SkyX* SkyX::GPUManager::mSkyX |
|
private |
The documentation for this class was generated from the following files: