mirror of https://github.com/axmolengine/axmol.git
commit
9e41eb310c
|
@ -1 +1 @@
|
||||||
2d1b5e984c1b11de103d72fd1219a7adfa9c4baa
|
9d64949d940f3601af63ef349967d1853680ef81
|
|
@ -444,9 +444,9 @@ void ChipmunkTestLayer::onEnter()
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
// portraint
|
// portraint
|
||||||
glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f);
|
// glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f);
|
||||||
// landscape
|
// landscape
|
||||||
// glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f);
|
glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f);
|
||||||
|
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glLoadIdentity();
|
glLoadIdentity();
|
||||||
|
|
|
@ -67,12 +67,10 @@ static TestScene* CreateTestScene(int nIdx)
|
||||||
pScene = new IntervalTestScene(); break;
|
pScene = new IntervalTestScene(); break;
|
||||||
case TEST_CHIPMUNK:
|
case TEST_CHIPMUNK:
|
||||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
|
#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
|
||||||
ChangeOrientation(CCDeviceOrientationLandscapeLeft);
|
|
||||||
pScene = new ChipmunkTestScene(); break;
|
pScene = new ChipmunkTestScene(); break;
|
||||||
#else
|
#else
|
||||||
#ifdef AIRPLAYUSECHIPMUNK
|
#ifdef AIRPLAYUSECHIPMUNK
|
||||||
#if (AIRPLAYUSECHIPMUNK == 1)
|
#if (AIRPLAYUSECHIPMUNK == 1)
|
||||||
ChangeOrientation(CCDeviceOrientationLandscapeLeft);
|
|
||||||
pScene = new ChipmunkTestScene(); break;
|
pScene = new ChipmunkTestScene(); break;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue