The default window background color in the cocos2d-x is black. This seems to be because the default initialization color of opengl is black. Since it is rendered by opengl, the initialized color must be processed by the gl function. The following [cpp] glClearColor (0.0f, 0.0f, 0.0f, 1.0f); glClearColor (0.0f, 0.0f, 0.0f, 1.0f); find a [cpp] void CCDirector: setgldefadefavalues (void) {// This method shocould be called only after openGLView _ was initialized CCAssert (m_pobOpenGLView, "opengl view shocould not be null"); setAlphaBlending (true); // XXX: Fix me, shocould enable/disable depth test according the depth Format as cocos2d-iphone did // [self setDepthTest: view _. depthFormat]; setDepthTest (true); setProjection (m_eProjection); // The default colors glClearColor (0.0f, 0.0f, 0.0f, 1.0f) are set here; // glClearColor (255.0f, 255.0f, 255.0f, 1.0f);} void ccctor ctor: setgldefavaluvalues (void) {// This method shocould be called only after openGLView _ was initialized CCAssert (m_pobOpenGLView, "opengl view shocould not be null "); set AlphaBlending (true); // XXX: Fix me, shocould enable/disable depth test according the depth format as cocos2d-iphone did // [self setDepthTest: view _. depthFormat]; setDepthTest (true); setProjection (m_eProjection); // The default colors glClearColor (0.0f, 0.0f, 0.0f, 1.0f) are set here; // glClearColor (255.0f, 255.0f, 255.0f, 1.0f);} the bottom is white.