maphorizon3.h

来自「使用stl技术,(还没看,是听说的)」· C头文件 代码 · 共 80 行

H
80
字号
/***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU Lesser General Public License as        *
*   published by the Free Software Foundation; either version 2 of the    *
*   License, or (at your option) any later version.                       *
*                                                                         *
***************************************************************************/
/**
@file 
MapHorizon3.h
@brief

http://www.dgp.toronto.edu/people/JamesStewart/papers/egwr97.html
there's a link to fast horizon computing

*/
#ifndef MapHorizon3_H
#define MapHorizon3_H

#include "Ogre.h"

namespace Ogre
{



/**
 * \ingroup Tool_MapSplitter
 *
 *
 * \par untested on linux
 *
 * \version 0.2
 * second version
 *
 * \date 06-07-2004
 *
 * \author tuan.kuranes@free.fr
 *
 * \todo 
 *
 * \bug 
 * 
 */
class MapHorizon3
{
public:
    MapHorizon3();
    ~MapHorizon3();

     /**
    * @remarks 
    * empty all maps and prepare for a new set of calculation.
    */
    void reset ();


    void calcHorizonMap ();


private:


    Real mVscale;
    uint mSamples;
    uint mElevationSize;
    Real mElevationHeight; // max height on the heightmap
    uint mW;
    uint mH;

    float *hMap;
    uchar *mHeightMapData;
    std::vector <Image*> mHorizon;
    std::vector <Image*> mElevation;

};
}
#endif //MapHorizon3_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?