Code: Select all
Entity *pWaterEntity;
Plane nWaterPlane;
//create a water plane SceneNode
nWaterPlane.normal = Vector3::UNIT_Y;
nWaterPlane.d = -1.5;
MeshManager::getSingleton().createPlane(
"WaterPlane",
nWaterPlane,
8000, 8000,
20, 20,
true, 1,
10, 10,
Vector3::UNIT_Z);Code: Select all
Compiling...
TutorialApplication.cpp
C:\OgreTutorials\OgreTutorials\Tutorial6\TutorialApplication.cpp(73) : error C2664: 'createPlane' : cannot convert parameter 2 from 'class Ogre::Plane' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char>
> &'
Reason: cannot convert from 'class Ogre::Plane' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous
Error executing cl.exe.
TutorialApplication.obj - 1 error(s), 0 warning(s)