摘要:step += 5; float ra = (float) CC_DEGREES_TO_RADIANS(step); float i = sinf(ra) * pNode->getCamera()->getZEye(); float j = cosf(ra) * pNode->getCamera()...
阅读全文
posted @ 2014-06-03 14:27
|
|
|
随笔分类 - Android
摘要:step += 5; float ra = (float) CC_DEGREES_TO_RADIANS(step); float i = sinf(ra) * pNode->getCamera()->getZEye(); float j = cosf(ra) * pNode->getCamera()...
阅读全文
posted @ 2014-06-03 14:27
摘要:View v = .....v.performClick();//触发系统的点击事件...有许多场合非常好用,例如:游戏的新手教程等。
阅读全文
posted @ 2013-06-15 12:41
摘要:publicstaticfloatSCALE_FROM_HIGH;//比例publicstaticintdensityDpi;//密度publicstaticintscreenWidth;//宽publicstaticintscreenHeight;//高publicstaticvoidsetScreen(Contextc){DisplayMetricsdm=c.getResources().getDisplayMetrics();densityDpi=dm.densityDpi;screenWidth=dm.widthPixels;screenHeight=dm.heightPixels;S
阅读全文
posted @ 2012-06-01 10:00
|
|