完成动画序列播放
This commit is contained in:
+16
-8
@@ -116,17 +116,18 @@ private:
|
||||
VkPipelineLayout m_pipelineLayout = VK_NULL_HANDLE;
|
||||
VkDescriptorSetLayout m_descriptorSetLayout = VK_NULL_HANDLE;
|
||||
vector<VkDescriptorSet> m_descriptor_sets_left;
|
||||
vector<VkDescriptorSet> m_descriptor_sets_right;
|
||||
//vector<VkDescriptorSet> m_descriptor_sets_right;
|
||||
const uint32_t kTextureInit = 1;
|
||||
const uint32_t kTextureMax = 10;
|
||||
const uint32_t kTextureMax = 20;
|
||||
vector<Texture> m_texs_left;
|
||||
vector<Texture> m_texs_right;
|
||||
bool cur_left = true;
|
||||
//vector<Texture> m_texs_right;
|
||||
//bool cur_left = true;
|
||||
|
||||
//vector<Texture>* _cur_texs;
|
||||
vector<Texture> m_texs_thick;
|
||||
std::vector<unsigned char> dummy_data;
|
||||
unsigned dummy_w = 2880;
|
||||
unsigned dummy_h = 2880;
|
||||
unsigned dummy_w = 2048;
|
||||
unsigned dummy_h = 2048;
|
||||
|
||||
std::vector<TextureLoadingVertexStructure> obj_vertices;
|
||||
std::vector<uint32_t> obj_indices;
|
||||
@@ -161,13 +162,15 @@ public:
|
||||
void loadMotionThread();
|
||||
std::thread worker_;
|
||||
bool _isLoadMotion = false;
|
||||
bool _isChangeMostion = false;
|
||||
Callback _callback_loadfinish;
|
||||
AnimationFinishedCallback _animationFinishedCallback;
|
||||
bool _animationLoop = true;
|
||||
string preLoadMotionList(string motion_list_str, Callback callback);
|
||||
vector<Motion>_preLoadMotions;
|
||||
Motion getMotionByName(string name);
|
||||
vector<Motion>_loadMotions;
|
||||
vector<Motion>_curMotions;
|
||||
void changeMotionList(AnimationFinishedCallback callback, bool loop);
|
||||
void changeMotionList(vector<string> motions, AnimationFinishedCallback callback, bool loop);
|
||||
|
||||
//void changeMotion(Motion& motion);
|
||||
InitArg _initArg;
|
||||
@@ -195,6 +198,11 @@ public:
|
||||
void cleanupResources(VkDevice device, VmaAllocator allocator);
|
||||
|
||||
bool _running = false;
|
||||
|
||||
bool _playMotion = true;
|
||||
void StopMotion();
|
||||
|
||||
void ResumeMotion();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user