Code: Select all
// Original
ITerrainSceneNode* CSceneManager::addTerrainSceneNode(
ISceneNode* parent, s32 id, video::IImage* texture,
video::IImage* heightmap, video::ITexture* detailmap,
const core::dimension2d<f32>& stretchSize, f32 maxHeight,
const core::dimension2d<s32>& defaultVertexBlockSize);
// New
ITerrainSceneNode* CSceneManager::addTerrainSceneNode(
ISceneNode* parent, s32 id, video::IImage* texture,
f32* heightmap[], video::ITexture* detailmap,
const core::dimension2d<f32>& stretchSize, f32 maxHeight,
const core::dimension2d<s32>& defaultVertexBlockSize);
So, each of these functions call a 'load' function in class CTerrainSceneNode. There is one load function that is the original and then an overloaded function which takes the array of floats.
The error I'm getting is 'cannot convert float* [] to Image* etc, etc'
So, it looked to me like it was trying to call the original function instead of the overloaded one. I'm confused, shouldn't it find the right one automatically?