PixelLightAPI
.
|
00001 /*********************************************************\ 00002 * File: SNMMesh.h * 00003 * 00004 * Copyright (C) 2002-2011 The PixelLight Team (http://www.pixellight.org/) 00005 * 00006 * This file is part of PixelLight. 00007 * 00008 * PixelLight is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation, either version 3 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * PixelLight is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with PixelLight. If not, see <http://www.gnu.org/licenses/>. 00020 \*********************************************************/ 00021 00022 00023 #ifndef __PLSCENE_SCENENODEMODIFIER_MESH_H__ 00024 #define __PLSCENE_SCENENODEMODIFIER_MESH_H__ 00025 #pragma once 00026 00027 00028 //[-------------------------------------------------------] 00029 //[ Includes ] 00030 //[-------------------------------------------------------] 00031 #include "PLScene/Scene/SceneNodeModifier.h" 00032 00033 00034 //[-------------------------------------------------------] 00035 //[ Namespace ] 00036 //[-------------------------------------------------------] 00037 namespace PLScene { 00038 00039 00040 //[-------------------------------------------------------] 00041 //[ Forward declarations ] 00042 //[-------------------------------------------------------] 00043 class SNMMeshUpdate; 00044 00045 00046 //[-------------------------------------------------------] 00047 //[ Classes ] 00048 //[-------------------------------------------------------] 00049 /** 00050 * @brief 00051 * Abstract scene node modifier base class for modifiers that promise to ONLY manipulate mesh properties of the owner scene node 00052 */ 00053 class SNMMesh : public SceneNodeModifier { 00054 00055 00056 //[-------------------------------------------------------] 00057 //[ RTTI interface ] 00058 //[-------------------------------------------------------] 00059 pl_class(PLS_RTTI_EXPORT, SNMMesh, "PLScene", PLScene::SceneNodeModifier, "Abstract scene node modifier base class for modifiers that promise to ONLY manipulate mesh properties of the owner scene node") 00060 pl_class_end 00061 00062 00063 //[-------------------------------------------------------] 00064 //[ Protected functions ] 00065 //[-------------------------------------------------------] 00066 protected: 00067 /** 00068 * @brief 00069 * Constructor 00070 * 00071 * @param[in] cSceneNode 00072 * Owner scene node 00073 */ 00074 PLS_API SNMMesh(SceneNode &cSceneNode); 00075 00076 /** 00077 * @brief 00078 * Destructor 00079 */ 00080 PLS_API virtual ~SNMMesh(); 00081 00082 /** 00083 * @brief 00084 * Returns a "PLScene::SNMMeshUpdate" instance from the owner scene node 00085 * 00086 * @return 00087 * A "PLScene::SNMMeshUpdate" instance 00088 * 00089 * @note 00090 * - If not already there, this method creates an instance of the "PLScene::SNMMeshUpdate" scene node modifier which frequently updates the mesh 00091 */ 00092 PLS_API SNMMeshUpdate *GetSNMMeshUpdate() const; 00093 00094 00095 }; 00096 00097 00098 //[-------------------------------------------------------] 00099 //[ Namespace ] 00100 //[-------------------------------------------------------] 00101 } // PLScene 00102 00103 00104 #endif // __PLSCENE_SCENENODEMODIFIER_MESH_H__
|