ogrepaginglandscapetexture_splatting2.h

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

H
53
字号
/***************************************************************************
OgrePagingLandScapeTexture_Splatting.h  -  description
	-------------------
	begin                : Mon Apr 16 2004
	copyright            : (C) 2002 by Jose A Milan
	email                : spoke@supercable.es
***************************************************************************/

/***************************************************************************
*                                                                         *
*   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 PAGINGLANDSCAPETEXTURE_SPLATTING2_H
#define PAGINGLANDSCAPETEXTURE_SPLATTING2_H

#include "OgrePagingLandScapePrerequisites.h"

namespace Ogre
{


class PagingLandScapeTexture_Splatting2 : public PagingLandScapeTexture
{
public:
	PagingLandScapeTexture_Splatting2();

	virtual ~PagingLandScapeTexture_Splatting2();

protected:

	virtual void _loadMaterial();

	virtual void _unloadMaterial();

private:

	void _BuildPoint(ColourValue& out, const int j, Real& alpha1, Real& alpha2, Real& alpha3, Real& alpha4 );

	inline void _InterpolateColour(ColourValue& out, const Real percentaje, const int index1, const int index2);

	inline void _InterpolateAlpha(Real& alpha1, Real& alpha2, Real& alpha3, Real& alpha4, const Real percentaje, const int index1, const int index2);

};

}

#endif

⌨️ 快捷键说明

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