00001 /*! \file 00002 \author victorien ferry & www.m4nkind.com 00003 \brief This file applies the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 , read file COPYING. 00004 */ 00005 #ifndef COM_M4NKIND_ModifierObject3DColor_H 00006 #define COM_M4NKIND_ModifierObject3DColor_H 00007 #include "ModifierObject3DVirtual.h" 00008 00009 //#include "PackFLoatByte_Color.h" 00010 //#include "PackDynamicFloat.h" 00011 #include "PackObjectReference.h" 00012 /*! 00013 \class ModifierObject3DColor 00014 \ingroup BaseObjectInherited_VedaLib3DEngine 00015 \brief Modifier that would shade the color of an object 00016 in realtime. 00017 */ 00018 00019 class ModifierObject3DColor : public ModifierObject3DVirtual 00020 { 00021 /*================================================================== 00022 PUBLIC 00023 ==================================================================*/ 00024 public: 00025 /*! 00026 \brief Constructor. There should only be members initialisation there. 00027 */ 00028 ModifierObject3DColor(void); 00029 00030 /*! 00031 \brief Class Inheritance Descriptors. Also forces a destructor. See BASEOBJECT_DECLARE_... in .cpp 00032 */ 00033 BASEOBJECT_DEFINE_CLASS(ModifierObject3DColor); 00034 00035 /* 00036 \brief Apply a modification on a vertex (shape or color or anything). 00037 \param _pVertexList first vertex to modify 00038 \param _NbVertex number of vertex in list. 00039 \param _framedate date in seconds. 00040 */ 00041 virtual void Modify( VirtualMachine::InternalVertex *_pVertexList, 00042 const unsigned int _NbVertex, 00043 float _framedate); 00044 00045 /*================================================================== 00046 PROTECTED 00047 ==================================================================*/ 00048 protected: 00049 //! reference to displacing equation 00050 PackObjectReference mSer_Equation; 00051 00052 /* //! dynamics for color: 00053 PackDynamicFloat mSer_BaseColor_RGB; 00054 //! dynamics for transparency: 00055 PackDynamicFloat mSer_BaseColor_Alpha; 00056 //! optimisation trick. 00057 float m_LastComputedDate; 00058 //! current date values. 00059 float m_dateRGBA[4]; 00060 */ 00061 }; 00062 00063 #endif
/\/\ 4 N k ! N D _______ _ __ ___ _____ ___ _ _ ____ ___________ __//___ /________ |/ / ___________\_______/ \ / _ _ \/ _ / _ / _/_/____/ _ __ / / / / / / / \ \/ / / \ \ / \\___/___/___/ ¯ _____/_____/ ______\___/_____/\________\\ \________/_ ___ __ l____\ /elD! http://www.m4nkind.com \____/