开发者

Cocos2D 0.99.5 CCDirector pixel format?

开发者 https://www.devze.com 2023-02-09 23:58 出处:网络
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??

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

精彩评论

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