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

# RigidMesh.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 RIGID_MESH_H_
    00026 #define RIGID_MESH_H_
    00027
    00028 #include <Graphics/Mesh/Mesh.h>
    00029
    00030 namespace Lamp{
    00031
    00032 //------------------------------------------------------------------------------
    00033 /**
    00034  * 剛体メッシュ
    00035  */
    00036 class RigidMesh : public Mesh{
    00037 friend class MeshManager;
    00038 public:
    00039     /**
    00040      * 剛体メッシュかどうか
    00041      * @return 剛体メッシュならtrue
    00042      */
    00043     virtual bool isRigidMesh() const{ return true; }
    00044
    00045     //--------------------------------------------------------------------------
    00046     /**
    00047      * コピー
    00048      * @param copyMask コピーマスク
    00049      * @return コピーされたメッシュ
    00050      */
    00051     virtual Mesh* copy(u_int copyMask = 0) const{
    00052         return copyRigidMesh(copyMask);
    00053     }
    00054
    00055     /**
    00056      * 剛体メッシュのコピー
    00057      * @param copyMask コピーマスク
    00058      * @return コピーされたメッシュ
    00059      */
    00060     virtual RigidMesh* copyRigidMesh(u_int copyMask = 0) const;
    00061
    00062     //--------------------------------------------------------------------------
    00063 protected:
    00064     /**
    00065      * コンストラクタ
    00066      * @param name 名前
    00067      * @param scene シーン
    00068      */
    00069     RigidMesh(const String& name, Scene* scene);
    00070
    00071     /**
    00072      * デストラクタ
    00073      */
    00074     virtual ~RigidMesh();
    00075
    00076     //--------------------------------------------------------------------------
    00077 private:
    00078
    00079 };
    00080
    00081 //------------------------------------------------------------------------------
    00082 } // End of namespace Lamp
    00083 #endif // End of RIGID_MESH_H_
    00084 //------------------------------------------------------------------------------
    00085