#include <u_water.h>
Definition at line 80 of file u_water.h.
Static Public Member Functions | |
UWaterHeightMap & | getWaterHeightMapFromID (uint32 ID) |
Retrieve a water heightmap from its ID. An assertion is raised if a wrong ID is provided. | |
void | releaseBlendTextures () |
void | setBlendFactor (UDriver *driver, float value) |
|
Retrieve a water heightmap from its ID. An assertion is raised if a wrong ID is provided.
Definition at line 40 of file water_user.cpp. References NL3D::CWaterPoolManager::getPoolByID(), NL3D::GetWaterPoolManager(), NL3D_MEM_WATER, nlassert, and uint32.
00041 { 00042 NL3D_MEM_WATER 00043 nlassert(GetWaterPoolManager().hasPool(ID)); // unknown pool ID! 00044 return GetWaterPoolManager().getPoolByID(ID); 00045 } |
|
release blend textures from memory Definition at line 57 of file water_user.cpp. References NL3D::GetWaterPoolManager(), and NL3D::CWaterPoolManager::releaseBlendTextures().
00058 { 00059 GetWaterPoolManager().releaseBlendTextures(); 00060 } |
|
Blend factor for water surfaces that use CTextureBlend (day / night mgt for example) The blend factor if clamped to [0, 1] NB : when transition has finished, one should call releaseBlendTexture to eventually release textures from system memory Definition at line 49 of file water_user.cpp. References NLMISC::clamp(), NL3D::GetWaterPoolManager(), NL3D_MEM_WATER, NL3D::CWaterPoolManager::setBlendFactor(), and value.
00050 { 00051 NL3D_MEM_WATER 00052 NLMISC::clamp(value, 0.f, 1.f); 00053 GetWaterPoolManager().setBlendFactor(NLMISC::safe_cast<CDriverUser *>(drv)->getDriver(), value); 00054 } |