Migration to Cocos 2.2 Problem


#1

Hi,
I trying to update cocos-based Win8 game to use latest cocos version.

In game existing code, there is use of the following API:

CCDirector::sharedDirector()->getOpenGLView()->D3DClearColor(255,255,255,0);

In current cocos version, it seems that CCEGLView object changed and there is no “D3DClearColor” method anymore there. Question: what’s the alternative in the current(2.2) cocos version?

Thank you


#2

In 2.2, you don’t need to call any d3d API directly. Maybe glClear() glClearColor() works as expects.