IrrLicht引擎研究
鬼火引擎研究
posts - 22,  comments - 40,  trackbacks - 0
下面创建的是由start0.bmp - start9.bmp 组成的材质动画

// 加载材质
core::array<video::ITexture*> startmovie;
for (int i = 0; i < 10; i++)
{
  char path[256];
   sprintf(path, "../media/start%d.bmp", i);
   video::ITexture* tex = pDriver->getTexture(path);
   startmovie.push_back(tex);
}
// 创建动画
anim = pSceneMgr->createTextureAnimator(startmovie, 40);
// someNode 为被渲染的节点
someNode->addAnimator(anim); 
posted on 2006-07-23 21:42 安徽飞雪游戏工作室 阅读(577) 评论(3) 编辑 收藏