We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Deprecate DrawPrimitives
Deprecate DrawPrimitives
Feature #3746 [Closed]
- Description updated (diff)
- Assignee set to zhangbin@cocos2d-x.org
@Nite
I found that DrawNode can't replace the functions in DrawPrimitives. Reason:
Methods in DrawPrimitives used many types of glDrawArrays, such as GL_LINES, GL_POINTS, GL_LINE_LOOP, GL_LINE_STRIP and so on.
But methods in DrawNode only used type GL_TRIANGLES.
And I think there is a problem in the implementation of DrawNode:
Developers can't remove specific shapes.
So I think we should refactor the DrawNode first before deprecate DrawPrimitives.
Deprecate DrawPrimitives to use DrawNode, convert the following test cases
ActionsTest,
DrawPrimitivesTest,
ArmatureScene,
LabelTest,
LabelTestNew,
TileMapTest