找到项目libcocos2d->draw_nodes->CCDrawingPrimitives.cpp将
glDrawArrays(GL_LINE_STRIP, 0, (GLsizei) segments+additionalSegment);
改为glDrawArrays(GL_TRIANGLE_FAN, 0, (GLsizei) segments+additionalSegment);就能实现实心圆。
时间: 2024-10-05 08:22:55
找到项目libcocos2d->draw_nodes->CCDrawingPrimitives.cpp将
glDrawArrays(GL_LINE_STRIP, 0, (GLsizei) segments+additionalSegment);
改为glDrawArrays(GL_TRIANGLE_FAN, 0, (GLsizei) segments+additionalSegment);就能实现实心圆。