//------------------------------------------------------------------------------
// Lamp : Open source game middleware
// Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
//
// This library 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.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//------------------------------------------------------------------------------

/** @file
 * 変換フォグヘッダ
 * @author Junpee
 */

#ifndef TRANSLATION_FOG_H_
#define TRANSLATION_FOG_H_

namespace Lamp{
	class Scene;
}

namespace LampForMaya{

//------------------------------------------------------------------------------
/**
 * 変換フォグ
 */
class TranslationFog{
public:
	/**
	 * コンストラクタ
	 */
	TranslationFog();

	/**
	 * デストラクタ
	 */
	virtual ~TranslationFog();

	//--------------------------------------------------------------------------
	/**
	 * 分析
	 * @return 成功すればtrue
	 */
	virtual bool analyze();

	//--------------------------------------------------------------------------
	/**
	 * Lampへの変換
	 * @param scene シーン
	 * @return 成功すればtrue
	 */
	virtual bool convertToLamp(Scene* scene);

	//--------------------------------------------------------------------------

private:
	// コピーコンストラクタの隠蔽
	TranslationFog(const TranslationFog& copy);

	// 代入コピーの隠蔽
	void operator =(const TranslationFog& copy);

	// フォグが有効かどうか
	bool fogEnabled_;
	// フォグカラー
	Color4f fogColor_;
	// フォグモード
	MString fogMode_;
	// フォグ濃度
	float fogDensity_;
	// フォグニア
	float fogNear_;
	// フォグファー
	float fogFar_;
};

//------------------------------------------------------------------------------
} // End of namespace LampForMaya
#endif // End of TRANSLATION_FOG_H_
//------------------------------------------------------------------------------

