Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

BasicShaderFixed.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 // Lamp : Open source game middleware
00003 // Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
00004 //
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 //------------------------------------------------------------------------------
00019 
00020 /** @file
00021  * 基本シェーダ固定パイプラインヘッダ
00022  * @author Junpee
00023  */
00024 
00025 #ifndef BASIC_SHADER_FIXED_H_
00026 #define BASIC_SHADER_FIXED_H_
00027 
00028 #include <Graphics/Shader/FixedShader.h>
00029 
00030 namespace Lamp{
00031 
00032 //------------------------------------------------------------------------------
00033 /**
00034  * 基本シェーダ固定パイプライン
00035  */
00036 class BasicShaderFixed : public FixedShader{
00037 friend class ShaderManager;
00038 public:
00039     /**
00040      * ステートブロックの構築
00041      * @param startBlock [out]開始ステートブロック
00042      * @param endBlock [out]終了ステートブロック
00043      * @param material マテリアル
00044      * @param baseTexture ベーステクスチャ
00045      * @param baseUVIndex ベースUVインデックス
00046      * @param lightTexture ライトテクスチャ
00047      * @param lightUVIndex ライトUVインデックス
00048      * @param stainTexture 汚れテクスチャ
00049      * @param stainUVIndex 汚れUVインデックス
00050      * @param diffuseColor ディフューズカラー
00051      * @param specularColor スペキュラカラー
00052      * @param ambientColor アンビエントカラー
00053      * @param emissiveColor エミッシブカラー
00054      * @param specularPower スペキュラパワー
00055      */
00056     virtual void buildStateBlock(
00057         Direct3DStateBlock** startBlock, Direct3DStateBlock** endBlock,
00058         Material* material, Texture* baseTexture, int baseUVIndex,
00059         Texture* lightTexture, int lightUVIndex, Texture* stainTexture,
00060         int stainUVIndex, const Color3f& diffuseColor,
00061         const Color3f& specularColor, const Color3f& ambientColor,
00062         const Color3f& emissiveColor, float specularPower);
00063 
00064     /**
00065      * 描画
00066      * @param request 描画リクエスト
00067      */
00068     virtual void draw(DrawRequest* request);
00069 
00070 protected:
00071     /**
00072      * コンストラクタ
00073      */
00074     BasicShaderFixed();
00075 
00076     /**
00077      * デストラクタ
00078      */
00079     virtual ~BasicShaderFixed();
00080 
00081 private:
00082 
00083 };
00084 
00085 //------------------------------------------------------------------------------
00086 } // End of namespace Lamp
00087 #endif // End of BASIC_SHADER_FIXED_H_
00088 //------------------------------------------------------------------------------
00089 

Generated on Wed Mar 16 10:29:27 2005 for Lamp by doxygen 1.3.2