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

# LampCore.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  * Lampコアヘッダ
    00022  * @author Junpee
    00023  */
    00024
    00025 #ifndef LAMP_CORE_H_
    00026 #define LAMP_CORE_H_
    00027
    00028 namespace Lamp{
    00029
    00030 //------------------------------------------------------------------------------
    00031 /**
    00032  * Lampコア
    00033  */
    00034 class LampCore{
    00035 public:
    00036     /**
    00037      * 初期化
    00038      */
    00039     static void initialize();
    00040
    00041     /**
    00042      * 後始末
    00043      */
    00044     static void finalize();
    00045
    00046     /**
    00047      * ウィンドウプロシージャ
    00048      * @param windowHandle ウィンドウハンドル
    00049      * @param message メッセージ
    00050      * @param wParam wメッセージパラメータ
    00051      * @param lParam lメッセージパラメータ
    00052      * @return メッセージを処理し、それ以上の処理が必要無いならば0以外を返す。
    00053      */
    00054     static LRESULT windowProcedure(
    00055         HWND windowHandle, u_int message, WPARAM wParam, LPARAM lParam);
    00056
    00057     /**
    00058      * 初期化済みかどうか
    00059      */
    00060     static bool isInitialized(){ return isInitialized_; }
    00061
    00062 private:
    00063     // コンストラクタの隠蔽
    00064     LampCore();
    00065
    00066     // 初期化フラグ
    00067     static bool isInitialized_;
    00068 };
    00069
    00070 //------------------------------------------------------------------------------
    00071 } // End of namespace Lamp
    00072 #endif // End of LAMP_CORE_H_
    00073 //------------------------------------------------------------------------------
    00074