result CCEGLView::OnDraw(void) { result r = E_SUCCESS; CCDirector * pDirector = CCDirector::sharedDirector(); pDirector->drawScene(); return r; }