Cocos2d 3.0中的3D动作效果怎么了?

时间:2014-03-15 05:02:32

标签: objective-c cocos2d-iphone xcode5

我在Cocos2d v3.0中找不到以下内容

CCTiledGrid3D CCTiledGrid3DAction CCGrid3D CCGrid3DAction

此外,以下代码已过时或无效:

// IMPORTANT: Call this function at the very beginning, before running your 1st scene
// Create a depth buffer of 24 bits
// These means that openGL z-order will be taken into account
[[CCDirector sharedDirector] setDepthBufferFormat:kDepthBuffer16];

1 个答案:

答案 0 :(得分:2)

你正在看吗?检查AppDelegate.m,在那里你可以设置opions

[self setupCocos2dWithOptions:@{
                                CCSetupDepthFormat: @GL_DEPTH24_STENCIL8,
                            CCSetupPixelFormat: kEAGLColorFormatRGBA8
    }];