24 #ifndef _SkyX_GPUManager_H_
25 #define _SkyX_GPUManager_H_
63 void addGroundPass(Ogre::Pass* GroundPass,
64 const Ogre::Real& AtmosphereRadius,
65 const Ogre::SceneBlendType& SBT = Ogre::SBT_ADD);
73 void setGpuProgramParameter(
const GpuProgram &GpuP,
74 const Ogre::String &Name,
const int &Value,
75 const bool& UpdateGroundPasses =
true);
83 void setGpuProgramParameter(
const GpuProgram &GpuP,
84 const Ogre::String &Name,
const Ogre::Real &Value,
85 const bool& UpdateGroundPasses =
true);
93 void setGpuProgramParameter(
const GpuProgram &GpuP,
94 const Ogre::String &Name,
const Ogre::Vector2 &Value,
95 const bool& UpdateGroundPasses =
true);
103 void setGpuProgramParameter(
const GpuProgram &GpuP,
104 const Ogre::String &Name,
const Ogre::Vector3 &Value,
105 const bool& UpdateGroundPasses =
true);
110 const Ogre::String getSkydomeMaterialName()
const;
115 inline const Ogre::String getMoonMaterialName()
const
128 inline void _notifySkydomeMaterialChanged()
130 mSkydomeMaterial =
static_cast<Ogre::MaterialPtr
>(
131 Ogre::MaterialManager::getSingleton().getByName(
132 getSkydomeMaterialName()));
134 if (mSkydomeMaterial.isNull())
136 SkyXLOG(
"Error in SkyX::GPUManager: '" +
137 getSkydomeMaterialName() +
"' material not found");
147 std::vector<Ogre::Pass*> mGroundPasses;
153 void _setTextureHWGammaCorrection(
const Ogre::String& n,
const bool& g);
156 Ogre::MaterialPtr mSkydomeMaterial;
SkyX(Ogre::SceneManager *sm, Controller *c)
Contructor.
#define SkyXLOG(msg)
Log macro.
Definition: Prerequisites.h:56
#define DllExport
Include external headers.
Definition: Prerequisites.h:45