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

SceneFramework.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 SCENE_FRAMEWORK_H_
00026 #define SCENE_FRAMEWORK_H_
00027 
00028 #include <Framework/System/BasicFramework.h>
00029 
00030 namespace Lamp{
00031 
00032 class Renderer;
00033 class InformationRenderer;
00034 class Scene;
00035 class Camera;
00036 class PS2PadCameraController;
00037 class AnimationManager;
00038 class Animation;
00039 class PS2Pad;
00040 
00041 //------------------------------------------------------------------------------
00042 /**
00043  * シーンフレームワーク
00044  */
00045 class SceneFramework : public BasicFramework{
00046 public:
00047     /**
00048      * コンストラクタ
00049      *
00050      * ウィンドウや列挙の初期化を行う
00051      * @param name アプリケーション名
00052      */
00053     SceneFramework(const String& name);
00054 
00055     /**
00056      * デストラクタ
00057      */
00058     virtual ~SceneFramework();
00059 
00060     /**
00061      * シーンのロード
00062      * @param sceneName シーン名
00063      * @return 成功すればtrue
00064      */
00065     virtual bool loadScene(const String& sceneName);
00066 
00067 protected:
00068     //--------------------------------------------------------------------------
00069     /**
00070      * フレームワークの初期化
00071      * @param instanceHandle インスタンスハンドル
00072      * @return 初期化に成功すればtrueを返す
00073      */
00074     virtual bool frameworkInitialize(HINSTANCE instanceHandle);
00075 
00076     /**
00077      * フレームワークの後始末
00078      */
00079     virtual void frameworkFinalize();
00080 
00081     /**
00082      * フレームワーク実行
00083      */
00084     virtual void frameworkRun();
00085 
00086     /**
00087      * フレームワークレンダリング準備
00088      */
00089     virtual void frameworkRenderSetup();
00090 
00091     /**
00092      * フレームワークレンダリング
00093      */
00094     virtual void frameworkRender();
00095 
00096     //--------------------------------------------------------------------------
00097     /**
00098      * シーンのクリア
00099      */
00100     virtual void clearScene();
00101 
00102     //--------------------------------------------------------------------------
00103     /// レンダラ
00104     Renderer* renderer_;
00105     /// インフォメーションレンダラ
00106     InformationRenderer* informationRenderer_;
00107 
00108     /// シーン名
00109     String sceneName_;
00110     /// シーン
00111     Scene* scene_;
00112     /// カメラ
00113     Camera* camera_;
00114     /// カメラコントローラ
00115     PS2PadCameraController* cameraController_;
00116 
00117     /// アニメーションマネージャ
00118     AnimationManager* animationManager_;
00119     /// アニメーション
00120     Animation* animation_;
00121     /// 実行回数
00122     int runCount_;
00123 
00124     /// パッド
00125     PS2Pad* pad_;
00126     
00127 };
00128 
00129 //------------------------------------------------------------------------------
00130 } // End of namespace Lamp
00131 #endif // End of SCENE_FRAMEWORK_H_
00132 //------------------------------------------------------------------------------
00133 

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