Code: Select all
.\source\core\GameFXManager.cpp(158) : error C2664: 'irr::scene::ISceneManager::addHillPlaneMesh' : cannot convert parameter 3 from 'irr::core::dimension2d<T>' to 'const irr::core::dimension2d<T> &'
1> with
1> [
1> T=irr::s32
1> ]
1> and
1> [
1> T=irr::u32
1> ]
1> Reason: cannot convert from 'irr::core::dimension2d<T>' to 'const irr::core::dimension2d<T>'
1> with
1> [
1> T=irr::s32
1> ]
1> and
1> [
1> T=irr::u32
1> ]
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Code: Select all
void CGameFXManager::createWaterEffectNode(CGameManager* pManager, core::vector3df position, const core::dimension2d<f32> size, const c8 *layer1, const c8 *layer2)
{
scene::ISceneNode* waterNode = 0;
pManager->getSceneManager()->addHillPlaneMesh("waterMesh",
size,
core::dimension2d<s32>(40,40), 0, 0,
core::dimension2d<f32>(0,0),
core::dimension2d<f32>(10,10));
// wave size and speed can be modified here
waterNode = pManager->getSceneManager()->addWaterSurfaceSceneNode(pManager->getSceneManager()->getMesh("waterMesh")->getMesh(0), 3.0f, 300.0f, 30.0f);
waterNode->setID(ID_NODE_WATER);
waterNode->setPosition(position);
waterNode->setMaterialTexture(0, pManager->getDriver()->getTexture(layer1));
waterNode->setMaterialTexture(1, pManager->getDriver()->getTexture(layer2));
waterNode->setMaterialType(video::EMT_REFLECTION_2_LAYER);
}
Code: Select all
virtual IAnimatedMesh* addHillPlaneMesh(const c8* name,
const core::dimension2d<f32>& tileSize, const core::dimension2d<u32>& tileCount,
video::SMaterial* material = 0, f32 hillHeight = 0.0f,
const core::dimension2d<f32>& countHills = core::dimension2d<f32>(0.0f, 0.0f),
const core::dimension2d<f32>& textureRepeatCount = core::dimension2d<f32>(1.0f, 1.0f)) = 0;
Code: Select all
const core::dimension2d<f32> param2 = core::dimension2d<f32>(40,40);