#pragma once class CColorTransitionHelper { public: CColorTransitionHelper(); ~CColorTransitionHelper(); void Clear(const float & c_rfRed, const float & c_rfGreen, const float & c_rfBlue, const float & c_rfAlpha); void SetSrcColor(const float & c_rfRed, const float & c_rfGreen, const float & c_rfBlue, const float & c_rfAlpha); void SetTransition(const float & c_rfRed, const float & c_rfGreen, const float & c_rfBlue, const float & c_rfAlpha, const DWORD & dwDuration); const D3DCOLOR & GetCurColor();// { return m_dwCurColor; } void StartTransition(); bool Update(); bool isTransitionStarted() { return m_bTransitionStarted; } private: D3DCOLOR m_dwCurColor; // ÇöÀç »ö DWORD m_dwStartTime; // ¹Ù²î±â ½ÃÀÛÇÏ´Â ½Ã°£ DWORD m_dwDuration; // ¾ó¸¶ µ¿¾È¿¡ ¹Ù²î´Â°¡? bool m_bTransitionStarted; float m_fSrcRed, m_fSrcGreen, m_fSrcBlue, m_fSrcAlpha; float m_fDstRed, m_fDstGreen, m_fDstBlue, m_fDstAlpha; };