Cocos2D 0.99.5 CCDirector pixel format?

438 views Asked by At

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

1

There are 1 answers

0
xuanweng On BEST ANSWER

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..