开发者

Cocos2D 0.99.5 CCDirector pixel format?

I'm trying to set the pixel format in my CCDirector but i can't find the method.

It seems to开发者_运维技巧 me that my version of cocos2d doesn't have that method??

Strange


In your app delegate, look for this line:

EAGLView *glView = [EAGLView viewWithFrame:[window bounds]
                               pixelFormat:kEAGLColorFormatRGB565   // kEAGLColorFormatRGBA8
                               depthFormat:0                        // GL_DEPTH_COMPONENT16_OES
                    ];

or search for

EAGLView *glView 

and you will find it..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜