51 lines
1.1 KiB
C++
51 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:
|
|
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;
|
|
};
|
|
//martysama0134's 2e58d0b8baeb072acdf3afc4a5d1999f
|