tegenerator.cpp
来自「海量地形数据漫游系统,对于OPENGL开发人员具有一定的参考」· C++ 代码 · 共 50 行
CPP
50 行
/*****************************************************************************\ * * TeGenerator.cpp * * TeGenerator abstract class implementation * * Author: Martin Havl龛ek (xhavli15 AT stud.fit.vutbr.cz) * Contributors: * * ---------------------------------------------------------------------------- * * THIS SOFTWARE IS NOT COPYRIGHTED * * This source code is offered for use in the public domain. * You may use, modify or distribute it freely. * * This source code is distributed in the hope that it will be useful but * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY * DISCLAIMED. This includes but is not limited to warranties of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * If you find the source code useful, authors will kindly welcome * if you give them credit and keep their names with their source code. *\*****************************************************************************/#include "generators/TeGenerator.h"//-----------------------------------------------------------------------------/** * Resets current step counter to zero. */void TeGenerator::reset(){ step = 0;}//-----------------------------------------------------------------------------/** * Sets hmap pointer. * \param m Pointer to a heightmap. */void TeGenerator::setHMap(TeHeightMap *m){ hmap = m;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?