cocos2d-iphone源碼分析(2):Director

簡介 CCDirector負責建立和處理主窗口,和管理場景的的執行。同時負責:node 初始化OpenGL ES的context 設置OpenGL像素格式(默認是RGB565) 設置OpenGL緩衝深度(默認是0-bit) 設置投影模式(默認是3D) CCDirector通常做爲單件使用,標準用法是:[[CCDirector sharedDirector] methodName]。IOS下[CCD
相關文章
相關標籤/搜索