forked from metin2/client
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include "../eterlib/GrpScreen.h"
|
|||
|
#include "../eterlib/GrpImageInstance.h"
|
|||
|
#include "EffectElementBaseInstance.h"
|
|||
|
#include "FrameController.h"
|
|||
|
#include "EffectMesh.h"
|
|||
|
|
|||
|
class CEffectMeshInstance : public CEffectElementBaseInstance
|
|||
|
{
|
|||
|
public:
|
|||
|
// NOTE : Mesh <20><><EFBFBD><EFBFBD> <20>ؽ<EFBFBD><D8BD><EFBFBD> <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8> <20>ν<EFBFBD><CEBD>Ͻ<EFBFBD><CFBD>̴<EFBFBD>.
|
|||
|
typedef struct STextureInstance
|
|||
|
{
|
|||
|
CFrameController TextureFrameController;
|
|||
|
std::vector<CGraphicImageInstance*> TextureInstanceVector;
|
|||
|
} TTextureInstance;
|
|||
|
|
|||
|
public:
|
|||
|
CEffectMeshInstance();
|
|||
|
virtual ~CEffectMeshInstance();
|
|||
|
|
|||
|
public:
|
|||
|
static void DestroySystem();
|
|||
|
|
|||
|
static CEffectMeshInstance* New();
|
|||
|
static void Delete(CEffectMeshInstance* pkMeshInstance);
|
|||
|
|
|||
|
static CDynamicPool<CEffectMeshInstance> ms_kPool;
|
|||
|
|
|||
|
protected:
|
|||
|
void OnSetDataPointer(CEffectElementBase * pElement);
|
|||
|
|
|||
|
void OnInitialize();
|
|||
|
void OnDestroy();
|
|||
|
|
|||
|
bool OnUpdate(float fElapsedTime);
|
|||
|
void OnRender();
|
|||
|
|
|||
|
BOOL isActive();
|
|||
|
|
|||
|
protected:
|
|||
|
CEffectMeshScript * m_pMeshScript;
|
|||
|
CEffectMesh * m_pEffectMesh;
|
|||
|
|
|||
|
CFrameController m_MeshFrameController;
|
|||
|
std::vector<TTextureInstance> m_TextureInstanceVector;
|
|||
|
|
|||
|
CEffectMesh::TRef m_roMesh;
|
|||
|
};
|