⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ogreipltexture_splatting1.h

📁 使用stl技术,(还没看,是听说的)
💻 H
字号:
/***************************************************************************
	OgreIPLTexture__Splatting1.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 __IPLTEXTURE_SPLATTING1_H_
#define __IPLTEXTURE_SPLATTING1_H_

#include "OgreIPLPrerequisites.h"
#include "OgreIPLTexture.h"

namespace Ogre
{

class IPLTexture_Splatting1 : public IPLTexture
{
public:
	IPLTexture_Splatting1( IPLPage* p );

	~IPLTexture_Splatting1( void );

	virtual void setupMaterial( int pageCount, IPLVirtualPageWindow* vw );

	static void preLoad( void );

protected:

	virtual void _loadMaterial( void );

	virtual void _unloadMaterial( void );

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 );

	Image BaseImage;
	Image AlphaMap1;
	Image AlphaMap2;
	Image AlphaMap3;
	Image AlphaMap4;
	Texture* BaseTex;
	Texture* Alpha1Tex;
	Texture* Alpha2Tex;
	Texture* Alpha3Tex;
	Texture* Alpha4Tex;
	bool bAlpha1NotUsed, bAlpha2NotUsed, bAlpha3NotUsed, bAlpha4NotUsed;
};

}

#endif

⌨️ 快捷键说明

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