首页 > 代码库 > cocos2d-x 实心圆

cocos2d-x 实心圆

找到项目libcocos2d->draw_nodes->CCDrawingPrimitives.cpp将

glDrawArrays(GL_LINE_STRIP, 0, (GLsizei) segments+additionalSegment);

改为glDrawArrays(GL_TRIANGLE_FAN, 0, (GLsizei) segments+additionalSegment);就能实现实心圆。

cocos2d-x 实心圆