游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2402|回复: 3

FrameListener()中的frameStarted()什么时候被调用?

[复制链接]

3

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2007-8-22 01:58:00 | 显示全部楼层 |阅读模式
请教一下  FrameListener()中的frameStarted()什么时候被调用?
怎么我在Application中更换场景时并没有调用FrameListener 但运行时显示frameStarted()错误呢?

错误位置:return ExampleListener::frameStarted(evt);



bool frameStarted(const FrameEvent& evt)
    {       
                mAnimationState2->addTime(evt.timeSinceLastFrame);
                mAnimationState->addTime(evt.timeSinceLastFrame);
                      return ExampleListener::frameStarted(evt);
     }


[em7] [em7] [em7] [em7] [em7] [em7]

5

主题

11

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2007-8-22 10:21:00 | 显示全部楼层

Re:FrameListener()中的frameStarted()什么时候被调用?

当然是在渲染开始的时候调用的,这个可以在源码中看到!

4

主题

27

帖子

27

积分

注册会员

Rank: 2

积分
27
发表于 2007-8-22 13:08:00 | 显示全部楼层

Re:FrameListener()中的frameStarted()什么时候被调用?

frameStarted()渲染前调用。

13

主题

90

帖子

96

积分

注册会员

Rank: 2

积分
96
发表于 2007-8-22 19:29:00 | 显示全部楼层

Re: FrameListener()中的frameStarted()什么时候被调用?

具体报的什么错你应该写出来
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-4-5 03:28

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表