Fix: Application::setAnimationInterval() not implemented.

This commit is contained in:
Reck Hou 2014-07-24 19:22:17 +08:00
parent bc5f4d9d59
commit 44c675f9ee
1 changed files with 10 additions and 1 deletions

View File

@ -68,7 +68,16 @@ int Application::run()
void Application::setAnimationInterval(double interval)
{
// NYI
JniMethodInfo methodInfo;
if (! JniHelper::getStaticMethodInfo(methodInfo, "org/cocos2dx/lib/Cocos2dxRenderer", "setAnimationInterval",
"(D)V"))
{
CCLOG("%s %d: error to get methodInfo", __FILE__, __LINE__);
}
else
{
methodInfo.env->CallStaticVoidMethod(methodInfo.classID, methodInfo.methodID, interval);
}
}
//////////////////////////////////////////////////////////////////////////