资源简介
cocos2dx升级spine3.8。解决多个相同动画同时加载卡顿的问题,自测可用,200个相同动画瞬间加载完成,不卡帧

代码片段和文件信息
/******************************************************************************
* Spine Runtimes License Agreement
* Last updated January 1 2020. Replaces all prior versions.
*
* Copyright (c) 2013-2020 Esoteric Software LLC
*
* Integration of the Spine Runtimes into software or otherwise creating
* derivative works of the Spine Runtimes is permitted under the terms and
* conditions of Section 2 of the Spine Editor License Agreement:
* http://esotericsoftware.com/spine-editor-license
*
* Otherwise it is permitted to integrate the Spine Runtimes into software
* or otherwise create derivative works of the Spine Runtimes (collectively
* “Products“) provided that each user of the Products must obtain their own
* Spine Editor license and redistribution of the Products in any form must
* include this license and copyright notice.
*
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC “AS IS“ AND ANY
* EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
* DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
* (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
* BUSINESS INTERRUPTION OR LOSS OF USE DATA OR PROFITS) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THE SPINE RUNTIMES EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
#ifdef SPINE_UE4
#include “SpinePluginPrivatePCH.h“
#endif
#include
#include
#include
#include
#include
#include
using namespace spine;
Animation::Animation(const String &name Vector &timelines float duration) :
_timelines(timelines)
_timelineIds()
_duration(duration)
_name(name) {
assert(_name.length() > 0);
for (int i = 0; i < (int)timelines.size(); i++)
_timelineIds.put(timelines[i]->getPropertyId() true);
}
bool Animation::hasTimeline(int id) {
return _timelineIds.containsKey(id);
}
Animation::~Animation() {
ContainerUtil::cleanUpVectorOfPointers(_timelines);
}
void Animation::apply(Skeleton &skeleton float lastTime float time bool loop Vector *pEvents float alpha
MixBlend blend MixDirection direction
) {
if (loop && _duration != 0) {
time = MathUtil::fmod(time _duration);
if (lastTime > 0) {
lastTime = MathUtil::fmod(lastTime _duration);
}
}
for (size_t i = 0 n = _timelines.size(); i < n; ++i) {
_timelines[i]->apply(skeleton lastTime time pEvents alpha blend direction);
}
}
const String &Animation::getName() {
return _name;
}
Vector &Animation::getTimelines() {
retur
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4252 2020-05-07 21:10 spine\Animation.cpp
文件 3766 2020-05-11 10:56 spine\Animation.h
文件 34598 2020-06-23 10:53 spine\AnimationState.cpp
文件 19681 2020-06-18 14:36 spine\AnimationState.h
文件 3191 2020-05-07 21:10 spine\AnimationStateData.cpp
文件 3366 2020-05-07 21:10 spine\AnimationStateData.h
文件 10021 2020-05-07 21:10 spine\Atlas.cpp
文件 4874 2020-05-11 10:58 spine\Atlas.h
文件 4944 2020-05-07 21:10 spine\AtlasAttachmentLoader.cpp
文件 3020 2020-05-07 21:10 spine\AtlasAttachmentLoader.h
文件 2222 2020-05-07 21:10 spine\Attachment.cpp
文件 2251 2020-06-18 10:28 spine\Attachment.h
文件 2191 2020-05-07 21:10 spine\AttachmentLoader.cpp
文件 3077 2020-05-07 21:10 spine\AttachmentLoader.h
文件 4365 2020-05-07 21:10 spine\AttachmentTimeline.cpp
文件 2899 2020-05-07 21:10 spine\AttachmentTimeline.h
文件 2032 2020-05-07 21:10 spine\AttachmentType.h
文件 2372 2020-05-07 21:10 spine\AttachmentVertices.cpp
文件 2183 2020-05-07 21:10 spine\AttachmentVertices.h
文件 1913 2020-05-07 21:10 spine\BlendMode.h
文件 12683 2020-05-07 21:10 spine\Bone.cpp
文件 6555 2020-06-18 10:24 spine\Bone.h
文件 3518 2020-05-07 21:10 spine\BoneData.cpp
文件 3461 2020-06-18 10:23 spine\BoneData.h
文件 2143 2020-05-07 21:10 spine\BoundingBoxAttachment.cpp
文件 2136 2020-05-07 21:10 spine\BoundingBoxAttachment.h
文件 2342 2020-05-07 21:10 spine\ClippingAttachment.cpp
文件 2254 2020-05-07 21:10 spine\ClippingAttachment.h
文件 2832 2020-06-18 11:46 spine\Color.h
文件 4937 2020-05-07 21:10 spine\ColorTimeline.cpp
............此处省略217个文件信息
- 上一篇:最新考研数学知识点总结
- 下一篇:SAR影像舰船目标检测
相关资源
- 连续hopfield神经网络解决TSP问题
- HP笔记本BIOS丢失解决方法,DMI TOOLK
-
安装 .net fr
amework 4.0失败原因是KB9 - 北航人工智能原理课大作业源代码,
- linux下用多进程同步方法解决生产者
- 108种编程中常见的问题及解决办法
- 解决数组定义太大无法运行问题
- 利用启发式搜索解决八数码难题程序
- jdbcTemplate分页彻底解决,使用游标滚
- 解决WPE进不了游戏的最佳方法(闭屏
- win2003 sp2 拒绝访问 解决方法
- Delphi中融合Dll中的窗口的解决办法详
- 解决在Windows XP SP2下不能显示验证码的
- 工控机主板不亮原因及解决方法
-
解决安装vs2012后vs2010 li
nk : fatal er - 用水平规对称性解决强CP问题
- 希捷公布USB外部硬盘解决方案
- 中网公司联合Intel推出中小企业网络解
- 解决Y470/Y570更新2.12BIOS后无法识别8G内
- 具有可编程环路补偿功能高密度电源
- 解决Eclipse的ADT没有NDK选项的问题
- 浪潮FC光纤接口系统SAN存储解决方案
- 中兴通讯IP over WDM解决方案
- 基于Blackfin的无线IP视频监控解决方案
- 英迅(Intransa) IP7500存储解决方案
- IP-SAN存储解决方案
- IP 网络存储IP SAN解决方案(iSCSI)
- 西门子ProCenter多媒体呼叫中心解决方
- IBM SAN 数据网关解决方案助力Summit B
- IP集群解决方案 助力公安“无处不
评论
共有 条评论