Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/renderer/WaterManager.h
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | public: | ||||
std::wstring m_WaterType; // Which texture to use. | std::wstring m_WaterType; // Which texture to use. | ||||
CColor m_WaterColor; // Color of the water without refractions. This is what you're seeing when the water's deep or murkiness high. | CColor m_WaterColor; // Color of the water without refractions. This is what you're seeing when the water's deep or murkiness high. | ||||
CColor m_WaterTint; // Tint of refraction in the water. | CColor m_WaterTint; // Tint of refraction in the water. | ||||
float m_Waviness; // How big the waves are. | float m_Waviness; // How big the waves are. | ||||
float m_Murkiness; // How murky the water is. | float m_Murkiness; // How murky the water is. | ||||
float m_WindAngle; // In which direction the water waves go. | float m_WindAngle; // In which direction the water waves go. | ||||
public: | public: | ||||
WaterManager(); | WaterManager(Renderer::Backend::IDevice* device); | ||||
~WaterManager(); | ~WaterManager(); | ||||
void Initialize(); | void Initialize(); | ||||
/** | /** | ||||
* LoadWaterTextures: Load water textures from within the | * LoadWaterTextures: Load water textures from within the | ||||
* progressive load framework. | * progressive load framework. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | void RenderWaves( | ||||
const CFrustum& frustrum); | const CFrustum& frustrum); | ||||
/** | /** | ||||
* Returns an index of the current texture that should be used for rendering | * Returns an index of the current texture that should be used for rendering | ||||
* water. | * water. | ||||
*/ | */ | ||||
size_t GetCurrentTextureIndex(const double& period) const; | size_t GetCurrentTextureIndex(const double& period) const; | ||||
size_t GetNextTextureIndex(const double& period) const; | size_t GetNextTextureIndex(const double& period) const; | ||||
private: | |||||
Renderer::Backend::IDevice* m_Device = nullptr; | |||||
}; | }; | ||||
#endif // INCLUDED_WATERMANAGER | #endif // INCLUDED_WATERMANAGER |
Wildfire Games · Phabricator