added event in LifetimeCallback

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-08-02 20:02:52 +08:00
parent 15ef7295bc
commit d1e2fd03a1

View File

@ -20,6 +20,14 @@ namespace hgl
{
hgl_zero(dst,count);
}
public: //活跃事件
virtual bool OnCreate (T *){return true;} ///<被创建
virtual bool OnActive (T *){return true;} ///<切换到激活
virtual bool OnIdle (T *){return true;} ///<切换到空闲
virtual bool OnReuse (T *){return true;} ///<被重用(空间被重用,旧数据需要清除)
virtual bool OnRelease (T *){return true;} ///<被释放
};
/**