Commit 000efed8 authored by hybrid's avatar hybrid

Add some default parameters.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3389 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 7e236b01
......@@ -963,9 +963,10 @@ IAnimatedMesh* CSceneManager::addTerrainMesh(const io::path& name,
if (MeshCache->isMeshLoaded(name))
return MeshCache->getMeshByName(name);
const bool debugBorders=false;
IMesh* mesh = GeometryCreator->createTerrainMesh(texture, heightmap,
stretchSize, maxHeight, getVideoDriver(),
defaultVertexBlockSize);
defaultVertexBlockSize, debugBorders);
if (!mesh)
return 0;
......
......@@ -216,8 +216,9 @@ namespace scene
//! Adds a terrain mesh to the mesh pool.
virtual IAnimatedMesh* addTerrainMesh(const io::path& meshname, video::IImage* texture, video::IImage* heightmap,
const core::dimension2d<f32>& stretchSize,
f32 maxHeight, const core::dimension2d<u32>& defaultVertexBlockSize);
const core::dimension2d<f32>& stretchSize = core::dimension2d<f32>(10.0f,10.0f),
f32 maxHeight=200.0f,
const core::dimension2d<u32>& defaultVertexBlockSize = core::dimension2d<u32>(64,64));
//! Add a arrow mesh to the mesh pool
virtual IAnimatedMesh* addArrowMesh(const io::path& name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment