ogrepaginglandscapedata2d_spline.h
来自「使用stl技术,(还没看,是听说的)」· C头文件 代码 · 共 62 行
H
62 行
/***************************************************************************
OgrePagingLandScapeData2D_Spline.h
Header for a NURBS-based heightfield generator
-------------------
begin : Sat Nov 9 2003
copyright : (C) 2003 Chris "Antiarc" Heald
email : antiarc@captionthis.com
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef PAGINGLANDSCAPEDATA2D_SPLINE_H
#define PAGINGLANDSCAPEDATA2D_SPLINE_H
#include "OgrePagingLandScapePrerequisites.h"
#include "DRGNURBSSurface.h"
namespace Ogre
{
/**
* A specialized class for loading 2D Data from a Spline file.
*/
class PagingLandScapeData2D_Spline: public PagingLandScapeData2D
{
public:
PagingLandScapeData2D_Spline();
~PagingLandScapeData2D_Spline();
protected:
virtual void _load(const float x, const float z);
virtual void _load();
virtual void _load(Image *newHeightmap);
virtual void _unload();
private:
int degree;
Point4D *mPoints;
CDRGNURBSSurface *mSurface;
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?