• 大小: 2.42MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-08
  • 语言: 其他
  • 标签:

资源简介

El游戏引擎为作者业余时间开发,供学习之用,详细描述见说明文档,未经作者许可,不得商用。

资源截图

代码片段和文件信息

#include “ElApplicationPCH.h“
#include “ElAnimation.h“

ElAnimation::ElAnimation()
: mLoop(true)
 mPlaying(false)
 mStartTime(0)
 mPastTime(0)
 mSpeed(1.0f)
{

}

ElAnimation::~ElAnimation()
{

}

void ElAnimation::reset()
{
mLoop = true;
mPlaying = false;
mStartTime = 0;
mPastTime = 0;
mSpeed = 1.0f;
mKeyframeTimes.clear();
}

void ElAnimation::addKeyframeTime(TimeValue timeKey)
{
mKeyframeTimes.push_back(timeKey);
}

int ElAnimation::getframeTimeCount()
{
return mKeyframeTimes.size();
}

void ElAnimation::play(TimeValue startTime bool loop /* = true */)
{
mStartTime = startTime;
mLoop = loop;
mPlaying = true;
}

void ElAnimation::update(TimeValue currentTime)
{
if (mPlaying)
{
mPastTime = (currentTime - mStartTime);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1403  2010-07-20 10:26  说明.txt

     文件      12822  2010-06-25 17:49  ElGameEngine\ElGameEngine.vcproj

     文件       1013  2010-04-22 10:56  ElGameEngine\include\ElAnimation.h

     文件       1803  2010-06-22 10:45  ElGameEngine\include\ElApplication.h

     文件       1402  2010-06-25 17:49  ElGameEngine\include\ElApplicationHeaders.h

     文件        278  2010-05-05 00:08  ElGameEngine\include\ElApplicationPCH.h

     文件        397  2010-05-05 11:28  ElGameEngine\include\ElArray.h

     文件        948  2010-05-05 11:51  ElGameEngine\include\ElArray.inl

     文件       8053  2010-06-13 11:24  ElGameEngine\include\ElAxisAlignedBox.h

     文件       1727  2010-06-28 16:42  ElGameEngine\include\ElBillboard.h

     文件       2199  2010-06-29 11:03  ElGameEngine\include\ElBillboardChain.h

     文件        471  2010-04-21 02:41  ElGameEngine\include\ElBone.h

     文件       1393  2010-06-29 14:09  ElGameEngine\include\ElCamera.h

     文件        130  2010-05-05 00:08  ElGameEngine\include\ElD3DHeaders.h

     文件        756  2010-06-29 13:27  ElGameEngine\include\ElDefines.h

     文件        697  2010-05-20 15:58  ElGameEngine\include\ElDeviceManager.h

     文件        842  2010-06-29 14:48  ElGameEngine\include\ElDummyobject.h

     文件       2720  2010-06-22 14:54  ElGameEngine\include\ElEntity.h

     文件       2604  2010-06-21 17:48  ElGameEngine\include\ElFrustum.h

     文件        294  2010-05-17 16:54  ElGameEngine\include\ElLight.h

     文件       1245  2010-05-19 13:27  ElGameEngine\include\ElMaterial.h

     文件        456  2010-04-16 11:39  ElGameEngine\include\ElMaterialManager.h

     文件       1836  2010-04-22 15:38  ElGameEngine\include\ElMesh.h

     文件       1366  2010-04-22 15:09  ElGameEngine\include\ElMeshAnimation.h

     文件        608  2010-04-17 16:43  ElGameEngine\include\ElMeshManager.h

     文件       1176  2010-04-22 13:55  ElGameEngine\include\ElMeshSerializer.h

     文件       1333  2010-06-21 17:44  ElGameEngine\include\ElMovableobject.h

     文件        420  2010-04-17 04:25  ElGameEngine\include\ElNameGenerator.h

     文件       1120  2010-04-22 10:56  ElGameEngine\include\ElNode.h

     文件        310  2010-05-31 10:21  ElGameEngine\include\ElPath.h

............此处省略264个文件信息

评论

共有 条评论

相关资源